Skip to content

Commit

Permalink
Allow loading of preset more than once.
Browse files Browse the repository at this point in the history
Fixes #14532
  • Loading branch information
izharaazmi committed Mar 15, 2017
1 parent 16b6fd0 commit 17a0fed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions administrator/modules/mod_menu/menu.php
Expand Up @@ -343,7 +343,7 @@ public function load($params, $enabled)

if ($menutype == '*')
{
require_once __DIR__ . '/preset/' . ($enabled ? 'enabled.php' : 'disabled.php');
require __DIR__ . '/preset/' . ($enabled ? 'enabled.php' : 'disabled.php');
}
else
{
Expand Down Expand Up @@ -374,7 +374,7 @@ public function load($params, $enabled)
// In recovery mode, load the preset inside a special root node.
$this->addChild(new JMenuNode(JText::_('MOD_MENU_RECOVERY_MENU_ROOT'), '#'), true);

require_once __DIR__ . '/preset/enabled.php';
require __DIR__ . '/preset/enabled.php';

$this->addSeparator();

Expand Down

0 comments on commit 17a0fed

Please sign in to comment.