Remove debug output for cached and fetched cases.

This commit is contained in:
andrey
2001-06-20 18:38:00 +00:00
parent 52500237ef
commit 5cc313b04f
3 changed files with 8 additions and 37 deletions

View File

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

View File

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

View File

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