mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-03 18:04:26 +02:00
Remove debug output for cached and fetched cases.
This commit is contained in:
@@ -615,7 +615,6 @@ function smarty_func_assign_debug_info($args, &$smarty_obj) {
|
||||
$assigned_vars = $smarty_obj->_tpl_vars;
|
||||
ksort($assigned_vars);
|
||||
$included_templates = $smarty_obj->_included_tpls;
|
||||
//sort($included_templates);
|
||||
$smarty_obj->assign("_debug_keys",array_keys($assigned_vars));
|
||||
$smarty_obj->assign("_debug_vals",array_values($assigned_vars));
|
||||
$smarty_obj->assign("_debug_tpls",$included_templates);
|
||||
|
@@ -518,16 +518,9 @@ class Smarty
|
||||
$results = $this->_process_cached_inserts($results);
|
||||
}
|
||||
if ($display) {
|
||||
echo $results;
|
||||
if ($this->debugging) { echo $this->_generate_debug_output(); }
|
||||
return;
|
||||
echo $results; return;
|
||||
} else {
|
||||
if ($this->debugging) {
|
||||
$debug_output = $this->_generate_debug_output();
|
||||
return $results.$debug_output;
|
||||
} else {
|
||||
return $results;
|
||||
}
|
||||
return $results;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -588,16 +581,9 @@ class Smarty
|
||||
if ($this->debugging) { echo $this->_generate_debug_output(); }
|
||||
return;
|
||||
} else {
|
||||
if (isset($results)) {
|
||||
if ($this->debugging) {
|
||||
$debug_output = $this->_generate_debug_output();
|
||||
return $results.$debug_output;
|
||||
} else {
|
||||
return $results;
|
||||
}
|
||||
}
|
||||
if (isset($results)) { return $results; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*======================================================================*\
|
||||
Function: _generate_debug_output()
|
||||
|
@@ -518,16 +518,9 @@ class Smarty
|
||||
$results = $this->_process_cached_inserts($results);
|
||||
}
|
||||
if ($display) {
|
||||
echo $results;
|
||||
if ($this->debugging) { echo $this->_generate_debug_output(); }
|
||||
return;
|
||||
echo $results; return;
|
||||
} else {
|
||||
if ($this->debugging) {
|
||||
$debug_output = $this->_generate_debug_output();
|
||||
return $results.$debug_output;
|
||||
} else {
|
||||
return $results;
|
||||
}
|
||||
return $results;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -588,16 +581,9 @@ class Smarty
|
||||
if ($this->debugging) { echo $this->_generate_debug_output(); }
|
||||
return;
|
||||
} else {
|
||||
if (isset($results)) {
|
||||
if ($this->debugging) {
|
||||
$debug_output = $this->_generate_debug_output();
|
||||
return $results.$debug_output;
|
||||
} else {
|
||||
return $results;
|
||||
}
|
||||
}
|
||||
if (isset($results)) { return $results; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*======================================================================*\
|
||||
Function: _generate_debug_output()
|
||||
|
Reference in New Issue
Block a user