aboutsummaryrefslogtreecommitdiffstats
path: root/library/Smarty/libs/sysplugins/smarty_internal_debug.php
diff options
context:
space:
mode:
authorHaakon Meland Eriksen <haakon.eriksen@far.no>2015-12-18 16:04:07 +0100
committerHaakon Meland Eriksen <haakon.eriksen@far.no>2015-12-18 16:04:07 +0100
commit628e565a6c5ee52341ba6de0b5ecf6495cbb78f8 (patch)
tree737c1027334a211b62b4a278f87be80bb7e17a4c /library/Smarty/libs/sysplugins/smarty_internal_debug.php
parenta721f39945bf3213c4305a389946c464b831a5f9 (diff)
parent84bf7058119bb2ed48358678be9c212a66c8cb83 (diff)
downloadvolse-hubzilla-628e565a6c5ee52341ba6de0b5ecf6495cbb78f8.tar.gz
volse-hubzilla-628e565a6c5ee52341ba6de0b5ecf6495cbb78f8.tar.bz2
volse-hubzilla-628e565a6c5ee52341ba6de0b5ecf6495cbb78f8.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'library/Smarty/libs/sysplugins/smarty_internal_debug.php')
-rw-r--r--library/Smarty/libs/sysplugins/smarty_internal_debug.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/library/Smarty/libs/sysplugins/smarty_internal_debug.php b/library/Smarty/libs/sysplugins/smarty_internal_debug.php
index e330a35c1..0cbd54955 100644
--- a/library/Smarty/libs/sysplugins/smarty_internal_debug.php
+++ b/library/Smarty/libs/sysplugins/smarty_internal_debug.php
@@ -399,31 +399,31 @@ class Smarty_Internal_Debug extends Smarty_Internal_Data
/**
* handle 'URL' debugging mode
*
- * @param Smarty_Internal_Template $_template
+ * @param Smarty $smarty
*/
- public function debugUrl(Smarty_Internal_Template $_template)
+ public function debugUrl(Smarty $smarty)
{
if (isset($_SERVER['QUERY_STRING'])) {
$_query_string = $_SERVER['QUERY_STRING'];
} else {
$_query_string = '';
}
- if (false !== strpos($_query_string, $_template->smarty->smarty_debug_id)) {
- if (false !== strpos($_query_string, $_template->smarty->smarty_debug_id . '=on')) {
+ if (false !== strpos($_query_string, $smarty->smarty_debug_id)) {
+ if (false !== strpos($_query_string, $smarty->smarty_debug_id . '=on')) {
// enable debugging for this browser session
setcookie('SMARTY_DEBUG', true);
- $_template->smarty->debugging = true;
- } elseif (false !== strpos($_query_string, $_template->smarty->smarty_debug_id . '=off')) {
+ $smarty->debugging = true;
+ } elseif (false !== strpos($_query_string, $smarty->smarty_debug_id . '=off')) {
// disable debugging for this browser session
setcookie('SMARTY_DEBUG', false);
- $_template->smarty->debugging = false;
+ $smarty->debugging = false;
} else {
// enable debugging for this page
- $_template->smarty->debugging = true;
+ $smarty->debugging = true;
}
} else {
if (isset($_COOKIE['SMARTY_DEBUG'])) {
- $_template->smarty->debugging = true;
+ $smarty->debugging = true;
}
}
}