Source for file core.display_debug_console.php
Documentation is available at core.display_debug_console.php
* Smarty debug_console function plugin
* Name: display_debug_console<br>
* Purpose: display the javascript debug console window
* @param array Format: null
// we must force compile the debug template in case the environment
// changed between separate applications.
if(empty($smarty->debug_tpl)) {
// set path to debug template from SMARTY_DIR
if($smarty->security && is_file($smarty->debug_tpl)) {
$_ldelim_orig = $smarty->left_delimiter;
$_rdelim_orig = $smarty->right_delimiter;
$smarty->left_delimiter = '{';
$smarty->right_delimiter = '}';
$_compile_id_orig = $smarty->_compile_id;
$smarty->_compile_id = null;
$_compile_path = $smarty->_get_compile_path($smarty->debug_tpl);
if ($smarty->_compile_resource($smarty->debug_tpl, $_compile_path))
$smarty->_include($_compile_path);
$smarty->_compile_id = $_compile_id_orig;
$smarty->left_delimiter = $_ldelim_orig;
$smarty->right_delimiter = $_rdelim_orig;
/* vim: set expandtab: */
|