diff --git a/Smarty.class.php b/Smarty.class.php index f236f25c..51652477 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -224,12 +224,6 @@ class Smarty $this->assign($var_name, $this->undefined); } } - } - - // setup debugging - if (!$this->debugging && $this->debugging_ctrl == 'URL' - && strstr($GLOBALS['HTTP_SERVER_VARS']['QUERY_STRING'], $this->_smarty_debug_id)) { - $this->debugging = true; } } @@ -616,6 +610,12 @@ class Smarty { $_smarty_old_error_level = $this->debugging ? error_reporting() : error_reporting(error_reporting() & ~E_NOTICE); + // setup debugging + if (!$this->debugging && $this->debugging_ctrl == 'URL' + && strstr($GLOBALS['HTTP_SERVER_VARS']['QUERY_STRING'], $this->_smarty_debug_id)) { + $this->debugging = true; + } + if ($this->debugging) { // capture time for debugging info $debug_start_time = $this->_get_microtime(); diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index f236f25c..51652477 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -224,12 +224,6 @@ class Smarty $this->assign($var_name, $this->undefined); } } - } - - // setup debugging - if (!$this->debugging && $this->debugging_ctrl == 'URL' - && strstr($GLOBALS['HTTP_SERVER_VARS']['QUERY_STRING'], $this->_smarty_debug_id)) { - $this->debugging = true; } } @@ -616,6 +610,12 @@ class Smarty { $_smarty_old_error_level = $this->debugging ? error_reporting() : error_reporting(error_reporting() & ~E_NOTICE); + // setup debugging + if (!$this->debugging && $this->debugging_ctrl == 'URL' + && strstr($GLOBALS['HTTP_SERVER_VARS']['QUERY_STRING'], $this->_smarty_debug_id)) { + $this->debugging = true; + } + if ($this->debugging) { // capture time for debugging info $debug_start_time = $this->_get_microtime();