From 17a0fedd27ca5d26f4f9b1071db448a3df995abd Mon Sep 17 00:00:00 2001 From: Izhar Aazmi Date: Wed, 15 Mar 2017 18:29:51 +0530 Subject: [PATCH] Allow loading of preset more than once. Fixes #14532 --- administrator/modules/mod_menu/menu.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/administrator/modules/mod_menu/menu.php b/administrator/modules/mod_menu/menu.php index 7233c28522383..98df43845b998 100644 --- a/administrator/modules/mod_menu/menu.php +++ b/administrator/modules/mod_menu/menu.php @@ -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 { @@ -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();