Update Core libs to avoid notice errors, add debug override switch
$DEBUG_ALL_OVERRIDE added to not override the set $DEBUG_ALL/$PRINT_ALL/etc switches on one script. Fix various notice bugs on very strict PHP setups.
This commit is contained in:
@@ -91,12 +91,15 @@
|
||||
//------------------------------ page rights ned
|
||||
|
||||
// automatic hide for DEBUG messages on live server
|
||||
if (TARGET == 'live' || TARGET == 'remote')
|
||||
// can be overridden when setting DEBUG_ALL_OVERRIDE on top of the script (for emergency debugging of one page only)
|
||||
if ((TARGET == 'live' || TARGET == 'remote') && !$DEBUG_ALL_OVERRIDE)
|
||||
{
|
||||
$login->debug_output_all = 0;
|
||||
$cms->debug_output_all = 1;
|
||||
$login->echo_output_all = 0;
|
||||
$login->print_output_all = 0;
|
||||
$cms->debug_output_all = 0;
|
||||
$cms->echo_output_all = 0;
|
||||
$cms->print_output_all = 1;
|
||||
$cms->print_output_all = 0;
|
||||
}
|
||||
$cms->DATA['JS_DEBUG'] = DEBUG;
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user