move debug test back into fetch()

This commit is contained in:
mohrt
2002-12-12 17:25:23 +00:00
parent 0cfedac9d5
commit c8cb8b6926
2 changed files with 12 additions and 12 deletions

View File

@@ -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();

View File

@@ -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();