mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 17:14:42 +02:00
Fix for Menu-Manager not display Menu area under some circumstances.
This commit is contained in:
@@ -16,6 +16,9 @@ if(isset($_GET['configure']))
|
|||||||
define("USER_AREA", true);
|
define("USER_AREA", true);
|
||||||
//Switch to desired layout
|
//Switch to desired layout
|
||||||
define('THEME_LAYOUT', $_GET['configure']);
|
define('THEME_LAYOUT', $_GET['configure']);
|
||||||
|
|
||||||
|
if(empty($_GET['debug']))
|
||||||
|
{
|
||||||
define('e_DEBUG', false);
|
define('e_DEBUG', false);
|
||||||
define('E107_DEBUG_LEVEL', 0);
|
define('E107_DEBUG_LEVEL', 0);
|
||||||
if(function_exists('xdebug_disable'))
|
if(function_exists('xdebug_disable'))
|
||||||
@@ -24,7 +27,7 @@ if(isset($_GET['configure']))
|
|||||||
}
|
}
|
||||||
@ini_set('display_errors', 0);
|
@ini_set('display_errors', 0);
|
||||||
error_reporting(0);
|
error_reporting(0);
|
||||||
|
}
|
||||||
define('e_MENUMANAGER_ACTIVE', true);
|
define('e_MENUMANAGER_ACTIVE', true);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -1493,6 +1493,7 @@ class e_menuManager {
|
|||||||
$matches = array();
|
$matches = array();
|
||||||
if(preg_match_all("/\{MENU=([\d]{1,3})(:[\w\d]*)?\}/", $str, $matches))
|
if(preg_match_all("/\{MENU=([\d]{1,3})(:[\w\d]*)?\}/", $str, $matches))
|
||||||
{
|
{
|
||||||
|
|
||||||
$menuText = "";
|
$menuText = "";
|
||||||
foreach($matches[1] as $menu)
|
foreach($matches[1] as $menu)
|
||||||
{
|
{
|
||||||
@@ -1569,10 +1570,13 @@ class e_menuManager {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$ns->tablerender('', varset($menuText));
|
echo $menuText;
|
||||||
|
|
||||||
|
// $ns->tablerender('', varset($menuText)); // Could fail with a badly built theme.
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
echo $tp->parseTemplate($str,true);
|
echo $tp->parseTemplate($str,true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user