default for $debug_tpl will be set up in Smarty_Internal_Debug

This commit is contained in:
Uwe Tews
2015-05-13 19:25:05 +02:00
parent e0dbc79204
commit dea56a2243
2 changed files with 6 additions and 3 deletions

View File

@@ -1,6 +1,11 @@
 ===== 3.1.24.dev ===== (xx.xx.2015)
13.05.2015
- improvement remove not needed ?><?php transitions from compiled code
- improvement of debugging:
- use fresh Smarty object to display the debug console because of possible problems when the Smarty
was extended or Smarty properties had been modified in the class source
- display Smarty version number
- Truncate lenght of Origin display and extend strin value display to 80 character
12.05.2015
- bugfix {$smarty.constant.TEST} did fail on undefined constant https://github.com/smarty-php/smarty/issues/28

View File

@@ -111,7 +111,7 @@ class Smarty extends Smarty_Internal_TemplateBase
/**
* smarty version
*/
const SMARTY_VERSION = '3.1.24-dev/3';
const SMARTY_VERSION = '3.1.24-dev/4';
/**
* define variable scopes
@@ -686,8 +686,6 @@ class Smarty extends Smarty_Internal_TemplateBase
} else {
$this->setPluginsDir(SMARTY_PLUGINS_DIR);
}
$this->debug_tpl = 'file:' . dirname(__FILE__) . '/debug.tpl';
if (isset($_SERVER['SCRIPT_NAME'])) {
Smarty::$global_tpl_vars['SCRIPT_NAME'] = new Smarty_Variable($_SERVER['SCRIPT_NAME']);
}