Files
smarty/plugins/function.debug.php
mohrt b579c0f51d update plugins to return values instead of echo, fix config file cache
to include global config variables in cache file
2003-01-08 17:34:45 +00:00

25 lines
534 B
PHP

<?php
/*
* Smarty plugin
* -------------------------------------------------------------
* Type: function
* Name: debug
* Version: 1.0
* Date: July 1, 2002
* Author: Monte Ohrt <monte@ispi.net>
* Purpose: popup debug window
* -------------------------------------------------------------
*/
function smarty_function_debug($params, &$smarty)
{
if($params['output']) {
$smarty->assign('_smarty_debug_output',$params['output']);
}
return $smarty->_generate_debug_output();
}
/* vim: set expandtab: */
?>