Chris PeBenito 696b41
Chris PeBenito 696b41
/**
Chris PeBenito 696b41
 * Smarty plugin
Chris PeBenito 696b41
 * @package Smarty
Chris PeBenito 696b41
 * @subpackage plugins
Chris PeBenito 696b41
 */
Chris PeBenito 696b41
Chris PeBenito 696b41
Chris PeBenito 696b41
/**
Chris PeBenito 696b41
 * Smarty {debug} function plugin
Chris PeBenito 696b41
 *
Chris PeBenito 696b41
 * Type:     function
Chris PeBenito 696b41
 * Name:     debug
Chris PeBenito 696b41
 * Date:     July 1, 2002
Chris PeBenito 696b41
 * Purpose:  popup debug window
Chris PeBenito 696b41
 * @link http://smarty.php.net/manual/en/language.function.debug.php {debug}
Chris PeBenito 696b41
 *       (Smarty online manual)
Chris PeBenito 696b41
 * @author   Monte Ohrt <monte at ohrt dot com>
Chris PeBenito 696b41
 * @version  1.0
Chris PeBenito 696b41
 * @param array
Chris PeBenito 696b41
 * @param Smarty
Chris PeBenito 696b41
 * @return string output from {@link Smarty::_generate_debug_output()}
Chris PeBenito 696b41
 */
Chris PeBenito 696b41
function smarty_function_debug($params, &$smarty)
Chris PeBenito 696b41
{
Chris PeBenito 696b41
    if (isset($params['output'])) {
Chris PeBenito 696b41
        $smarty->assign('_smarty_debug_output', $params['output']);
Chris PeBenito 696b41
    }
Chris PeBenito 696b41
    require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');
Chris PeBenito 696b41
    return smarty_core_display_debug_console(null, $smarty);
Chris PeBenito 696b41
}
Chris PeBenito 696b41
Chris PeBenito 696b41
/* vim: set expandtab: */
Chris PeBenito 696b41
Chris PeBenito 696b41
?>