mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
Fix for when menus fail. Use DebugMode = 'Included Files' (?[debug=inc+]) to switch off menu buffering, allowing errors to be seen.
This commit is contained in:
@@ -200,10 +200,15 @@ class e_menu
|
|||||||
{
|
{
|
||||||
global $sql, $ns, $tp, $sc_style;
|
global $sql, $ns, $tp, $sc_style;
|
||||||
global $error_handler;
|
global $error_handler;
|
||||||
|
|
||||||
$e107 = e107::getInstance();
|
$e107 = e107::getInstance();
|
||||||
|
|
||||||
$tmp = explode(':', $parm);
|
$tmp = explode(':', $parm);
|
||||||
$buffer_output = true; // Default - return all output.
|
|
||||||
|
|
||||||
|
$buffer_output = (E107_DBG_INCLUDES) ? false : true; // Turn off when trouble-shooting includes. Default - return all output.
|
||||||
|
|
||||||
|
|
||||||
if(isset($tmp[1])&&$tmp[1]=='echo')
|
if(isset($tmp[1])&&$tmp[1]=='echo')
|
||||||
{
|
{
|
||||||
$buffer_output = false;
|
$buffer_output = false;
|
||||||
|
Reference in New Issue
Block a user