~ubuntu-branches/ubuntu/gutsy/smarty/gutsy-security

« back to all changes in this revision

Viewing changes to libs/plugins/function.debug.php

  • Committer: Bazaar Package Importer
  • Author(s): Dimitri Fontaine
  • Date: 2005-03-29 11:53:20 UTC
  • mfrom: (0.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050329115320-g3rvndgnn75ogm35
Tags: 2.6.8-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 * Purpose:  popup debug window
16
16
 * @link http://smarty.php.net/manual/en/language.function.debug.php {debug}
17
17
 *       (Smarty online manual)
18
 
 * @author   Monte Ohrt <monte@ispi.net>
 
18
 * @author   Monte Ohrt <monte at ohrt dot com>
19
19
 * @version  1.0
20
20
 * @param array
21
21
 * @param Smarty
23
23
 */
24
24
function smarty_function_debug($params, &$smarty)
25
25
{
26
 
    if($params['output']) {
27
 
        $smarty->assign('_smarty_debug_output',$params['output']);
 
26
    if (isset($params['output'])) {
 
27
        $smarty->assign('_smarty_debug_output', $params['output']);
28
28
    }
29
 
    require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.display_debug_console.php');
 
29
    require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');
30
30
    return smarty_core_display_debug_console(null, $smarty);
31
31
}
32
32