Skip to content

Commit

Permalink
Improved testcase for JModelLegacy (Fix joomla#4709)
Browse files Browse the repository at this point in the history
  • Loading branch information
SniperSister authored and mbabker committed Oct 16, 2014
1 parent 9e29f97 commit 43283f5
Show file tree
Hide file tree
Showing 4 changed files with 384 additions and 41 deletions.
3 changes: 3 additions & 0 deletions libraries/legacy/model/legacy.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,15 @@ public function __construct($config = array())
{
$this->addTablePath($config['table_path']);
}
// @codeCoverageIgnoreStart
elseif (defined('JPATH_COMPONENT_ADMINISTRATOR'))
{
$this->addTablePath(JPATH_COMPONENT_ADMINISTRATOR . '/tables');
$this->addTablePath(JPATH_COMPONENT_ADMINISTRATOR . '/table');
}

// @codeCoverageIgnoreEnd

// Set the internal state marker - used to ignore setting state from the request
if (!empty($config['ignore_request']))
{
Expand Down
Loading

0 comments on commit 43283f5

Please sign in to comment.