Index: trunk/globals.php =================================================================== diff -u -r329 -r348 --- trunk/globals.php (.../globals.php) (revision 329) +++ trunk/globals.php (.../globals.php) (revision 348) @@ -1402,6 +1402,10 @@ return isset($update[$name]) ? $update[$name] : ( isset($main[$name]) ? $main[$name] : ''); } +function IsDebugMode() +{ + return defined('DEBUG_MODE') && constant('DEBUG_MODE') == 1 ? 1 : 0; +} ?>