mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
removed tabs and trailing spaces
This commit is contained in:
@@ -1142,25 +1142,25 @@ class Smarty
|
|||||||
? $this->tpl_error_reporting : error_reporting() & ~E_NOTICE);
|
? $this->tpl_error_reporting : error_reporting() & ~E_NOTICE);
|
||||||
|
|
||||||
if (!$this->debugging && $this->debugging_ctrl == 'URL') {
|
if (!$this->debugging && $this->debugging_ctrl == 'URL') {
|
||||||
$_query_string = $this->request_use_auto_globals ? $_SERVER['QUERY_STRING'] : $GLOBALS['HTTP_SERVER_VARS']['QUERY_STRING'];
|
$_query_string = $this->request_use_auto_globals ? $_SERVER['QUERY_STRING'] : $GLOBALS['HTTP_SERVER_VARS']['QUERY_STRING'];
|
||||||
if (@strstr($_query_string, $this->_smarty_debug_id)) {
|
if (@strstr($_query_string, $this->_smarty_debug_id)) {
|
||||||
if (@strstr($_query_string, $this->_smarty_debug_id . '=on')) {
|
if (@strstr($_query_string, $this->_smarty_debug_id . '=on')) {
|
||||||
// enable debugging for this browser session
|
// enable debugging for this browser session
|
||||||
@setcookie('SMARTY_DEBUG', true);
|
@setcookie('SMARTY_DEBUG', true);
|
||||||
$this->debugging = true;
|
$this->debugging = true;
|
||||||
} elseif (@strstr($_query_string, $this->_smarty_debug_id . '=off')) {
|
} elseif (@strstr($_query_string, $this->_smarty_debug_id . '=off')) {
|
||||||
// disable debugging for this browser session
|
// disable debugging for this browser session
|
||||||
@setcookie('SMARTY_DEBUG', false);
|
@setcookie('SMARTY_DEBUG', false);
|
||||||
$this->debugging = false;
|
$this->debugging = false;
|
||||||
} else {
|
} else {
|
||||||
// enable debugging for this page
|
// enable debugging for this page
|
||||||
$this->debugging = true;
|
$this->debugging = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$_cookie_var = $this->request_use_auto_globals ? $_COOKIE['SMARTY_DEBUG'] : $GLOBALS['HTTP_COOKIE_VARS']['SMARTY_DEBUG'];
|
$_cookie_var = $this->request_use_auto_globals ? $_COOKIE['SMARTY_DEBUG'] : $GLOBALS['HTTP_COOKIE_VARS']['SMARTY_DEBUG'];
|
||||||
$this->debugging = $_cookie_var ? true : false;
|
$this->debugging = $_cookie_var ? true : false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->debugging) {
|
if ($this->debugging) {
|
||||||
// capture time for debugging info
|
// capture time for debugging info
|
||||||
|
Reference in New Issue
Block a user