diff --git a/src/include/functions_common.php b/src/include/functions_common.php index cd99601..c48ba4e 100644 --- a/src/include/functions_common.php +++ b/src/include/functions_common.php @@ -1200,6 +1200,9 @@ function OutputDebugMessage($szDbg, $szDbgLevel = DEBUG_INFO) // Check if we should print the Error! if ( GetConfigSetting("MiscShowDebugMsg", 0, CFGLEVEL_USER) == 1 ) { + // Also enable the template helper variable here! + $content['SHOWDEBUGMSG'] = true; + $content['DEBUGMSG'][] = array( "DBGLEVEL" => $szDbgLevel, "DBGLEVELTXT" => GetDebugModeString($szDbgLevel),