Skip to content

Commit

Permalink
- bugfix $smarty_>debugging = true; did E_NOTICE messages when {eval}…
Browse files Browse the repository at this point in the history
… tag was used #266
  • Loading branch information
uwetews committed Aug 13, 2016
1 parent 7f932e7 commit fee77db
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion change_log.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
===== 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)

Expand Down
2 changes: 1 addition & 1 deletion libs/Smarty.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class Smarty extends Smarty_Internal_TemplateBase
/**
* smarty version
*/
const SMARTY_VERSION = '3.1.31-dev/1';
const SMARTY_VERSION = '3.1.31-dev/2';

/**
* define variable scopes
Expand Down
2 changes: 1 addition & 1 deletion libs/sysplugins/smarty_internal_debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class Smarty_Internal_Debug extends Smarty_Internal_Data
*/
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->offset ++;
$this->template_data[ $this->index ] = null;
Expand Down

0 comments on commit fee77db

Please sign in to comment.