~ubuntu-branches/ubuntu/breezy/moodle/breezy

« back to all changes in this revision

Viewing changes to lib/smarty/plugins/function.debug.php

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Mitchell
  • Date: 2005-10-13 02:00:59 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051013020059-y2qcyo41t7nqppcg
Tags: 1.5.2-1ubuntu1
* Resync with debian (security update)
* changed dependencys to php5
* changed apache dependency to apache2 
* References
  CAN-2005-2247

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