From c8cb8b6926d772d8634fc927f543aa387c4d938e Mon Sep 17 00:00:00 2001 From: mohrt Date: Thu, 12 Dec 2002 17:25:23 +0000 Subject: [PATCH] move debug test back into fetch() --- Smarty.class.php | 12 ++++++------ libs/Smarty.class.php | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) 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();