mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
move debug test back into fetch()
This commit is contained in:
@@ -224,12 +224,6 @@ class Smarty
|
|||||||
$this->assign($var_name, $this->undefined);
|
$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);
|
$_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) {
|
if ($this->debugging) {
|
||||||
// capture time for debugging info
|
// capture time for debugging info
|
||||||
$debug_start_time = $this->_get_microtime();
|
$debug_start_time = $this->_get_microtime();
|
||||||
|
@@ -224,12 +224,6 @@ class Smarty
|
|||||||
$this->assign($var_name, $this->undefined);
|
$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);
|
$_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) {
|
if ($this->debugging) {
|
||||||
// capture time for debugging info
|
// capture time for debugging info
|
||||||
$debug_start_time = $this->_get_microtime();
|
$debug_start_time = $this->_get_microtime();
|
||||||
|
Reference in New Issue
Block a user