updated language constants and tables
[openemr.git] / library / plugins / function.debug.php
blob2452d625e8fece777f37388e180671e9246e39ff
1 <?php
2 /**
3 * Smarty plugin
4 * @package Smarty
5 * @subpackage plugins
6 */
9 /**
10 * Smarty {debug} function plugin
12 * Type: function<br>
13 * Name: debug<br>
14 * Date: July 1, 2002<br>
15 * Purpose: popup debug window
16 * @link http://smarty.php.net/manual/en/language.function.debug.php {debug}
17 * (Smarty online manual)
18 * @author Monte Ohrt <monte@ispi.net>
19 * @version 1.0
20 * @param array
21 * @param Smarty
22 * @return string output from {@link Smarty::_generate_debug_output()}
24 function smarty_function_debug($params, &$smarty)
26 if($params['output']) {
27 $smarty->assign('_smarty_debug_output',$params['output']);
29 require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.display_debug_console.php');
30 return smarty_core_display_debug_console(null, $smarty);
33 /* vim: set expandtab: */