1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +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:
Cameron
2012-12-03 04:51:27 -08:00
parent fd96563117
commit e143292345

View File

@@ -200,10 +200,15 @@ class e_menu
{
global $sql, $ns, $tp, $sc_style;
global $error_handler;
$e107 = e107::getInstance();
$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')
{
$buffer_output = false;