From 5ef98d7b47423bdcf2529c8b7fc9bc9a882c55d4 Mon Sep 17 00:00:00 2001 From: rMalie Date: Mon, 17 Oct 2011 09:35:38 +0000 Subject: [PATCH] // Fix debug in smarty git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9381 b9a71923-0436-4b27-9f14-aed3839534dd --- tools/smarty/sysplugins/smarty_internal_data.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/smarty/sysplugins/smarty_internal_data.php b/tools/smarty/sysplugins/smarty_internal_data.php index 58a018b5c..943ac8508 100644 --- a/tools/smarty/sysplugins/smarty_internal_data.php +++ b/tools/smarty/sysplugins/smarty_internal_data.php @@ -16,7 +16,7 @@ class Smarty_Internal_Data { // class used for templates public $template_class = 'Smarty_Internal_Template'; - static public $duplicateLogs = array(); + /* static public $duplicateLogs = array(); static public $listLogs = null; public function __destruct() { @@ -38,7 +38,7 @@ class Smarty_Internal_Data { } file_put_contents(_PS_TOOL_DIR_.'smarty.duplicate.php', ' $_val) { if ($_key != '') { - @$this->duplicateLog[$_key][$backtrace[0]['line'].$backtrace[0]['file']] = array('line' => $backtrace[0]['line'], 'file' => $backtrace[0]['file']); + //@$this->duplicateLog[$_key][$backtrace[0]['line'].$backtrace[0]['file']] = array('line' => $backtrace[0]['line'], 'file' => $backtrace[0]['file']); $this->tpl_vars[$_key] = new Smarty_variable($_val, $nocache); } } } else { if ($tpl_var != '') { - @$this->duplicateLog[$tpl_var][$backtrace[0]['line'].$backtrace[0]['file']] = array('line' => $backtrace[0]['line'], 'file' => $backtrace[0]['file']); + //@$this->duplicateLog[$tpl_var][$backtrace[0]['line'].$backtrace[0]['file']] = array('line' => $backtrace[0]['line'], 'file' => $backtrace[0]['file']); $this->tpl_vars[$tpl_var] = new Smarty_variable($value, $nocache); } }