changed git call from https to git readonly
[atutor.git] / mods / phpdoc2 / PhpDocumentor / phpDocumentor / Smarty-2.6.0 / libs / plugins / function.debug.php
1 <?php\r
2 /**\r
3  * Smarty plugin\r
4  * @package Smarty\r
5  * @subpackage plugins\r
6  */\r
7 \r
8 \r
9 /**\r
10  * Smarty {debug} function plugin\r
11  *\r
12  * Type:     function<br>\r
13  * Name:     debug<br>\r
14  * Date:     July 1, 2002<br>\r
15  * Purpose:  popup debug window\r
16  * @link http://smarty.php.net/manual/en/language.function.debug.php {debug}\r
17  *       (Smarty online manual)\r
18  * @author   Monte Ohrt <monte@ispi.net>\r
19  * @version  1.0\r
20  * @param array\r
21  * @param Smarty\r
22  * @return string output from {@link Smarty::_generate_debug_output()}\r
23  */\r
24 function smarty_function_debug($params, &$smarty)\r
25 {\r
26     if($params['output']) {\r
27         $smarty->assign('_smarty_debug_output',$params['output']);\r
28     }\r
29     require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.display_debug_console.php');\r
30     return smarty_core_display_debug_console(null, $smarty);\r
31 }\r
32 \r
33 /* vim: set expandtab: */\r
34 \r
35 ?>\r