00001 <?php 00024 function smarty_function_debug($params, &$smarty) 00025 { 00026 if (isset($params['output'])) { 00027 $smarty->assign('_smarty_debug_output', $params['output']); 00028 } 00029 require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php'); 00030 return smarty_core_display_debug_console(null, $smarty); 00031 } 00032 00033 /* vim: set expandtab: */ 00034 00035 ?>