- bugfix $smarty_>debugging = true; did E_NOTICE messages when {eval} tag was used https://github.com/smarty-php/smarty/issues/266

This commit is contained in:
uwetews
2016-08-14 01:12:37 +02:00
parent 7f932e7ac4
commit fee77dbfb8
3 changed files with 4 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
===== 3.1.31-dev ===== (xx.xx.xx) ===== 3.1.31-dev ===== (xx.xx.xx)
14.08.2016
- bugfix $smarty_>debugging = true; did E_NOTICE messages when {eval} tag was used https://github.com/smarty-php/smarty/issues/266
===== 3.1.30 ===== (07.08.2016) ===== 3.1.30 ===== (07.08.2016)

View File

@@ -121,7 +121,7 @@ class Smarty extends Smarty_Internal_TemplateBase
/** /**
* smarty version * smarty version
*/ */
const SMARTY_VERSION = '3.1.31-dev/1'; const SMARTY_VERSION = '3.1.31-dev/2';
/** /**
* define variable scopes * define variable scopes

View File

@@ -52,7 +52,7 @@ class Smarty_Internal_Debug extends Smarty_Internal_Data
*/ */
public function start_template(Smarty_Internal_Template $template, $mode = null) public function start_template(Smarty_Internal_Template $template, $mode = null)
{ {
if (isset($mode)) { if (isset($mode) && (!isset($template->parent) || $template->parent->_objType !== 2)) {
$this->index ++; $this->index ++;
$this->offset ++; $this->offset ++;
$this->template_data[ $this->index ] = null; $this->template_data[ $this->index ] = null;