cvs: smarty / NEWS /libs Smarty_Compiler.class.php

From: Date: Sat, 15 Mar 2003 19:34:47 +0000
Subject: cvs: smarty / NEWS /libs Smarty_Compiler.class.php
Groups: php.smarty.cvs 
Request: Send a blank email to php-smarty-cvs+get-459@lists.php.net to get a copy of this message
mohrt Sat Mar 15 14:34:47 2003 EDT Modified files: /smarty NEWS /smarty/libs Smarty_Compiler.class.php Log: append "@" to template var echoes to supress possible notices Index: smarty/NEWS diff -u smarty/NEWS:1.309 smarty/NEWS:1.310 --- smarty/NEWS:1.309 Sat Mar 15 13:27:29 2003 +++ smarty/NEWS Sat Mar 15 14:34:46 2003 @@ -1,4 +1,5 @@ - - append "@" to _run_mod_handler to supress warnings (Monte) + - append "@" to _run_mod_handler and template var echos to + supress possible warnings (Monte) - fix problem with escaped double quotes (Monte) - fix html_radios to not return an array (Monte) - fixed length in modifier.truncate.php (messju) Index: smarty/libs/Smarty_Compiler.class.php diff -u smarty/libs/Smarty_Compiler.class.php:1.190 smarty/libs/Smarty_Compiler.class.php:1.191 --- smarty/libs/Smarty_Compiler.class.php:1.190 Sat Mar 15 13:27:30 2003 +++ smarty/libs/Smarty_Compiler.class.php Sat Mar 15 14:34:46 2003 @@ -1498,10 +1498,10 @@ $output = $smarty_ref; } else { $var_name = substr(array_shift($indexes), 1); - $output = "\$this->_smarty_vars['$var_name']"; + $output = "@\$this->_smarty_vars['$var_name']"; } } else { - $output = "\$this->_tpl_vars['$var_name']"; + $output = "@\$this->_tpl_vars['$var_name']"; } foreach ($indexes as $index) { @@ -1510,16 +1510,16 @@ if (is_numeric($index)) { $output .= "[$index]"; } elseif ($index{0} == '$') { - $output .= "[\$this->_tpl_vars['" . substr($index, 1) . "']]"; + $output .= "[@\$this->_tpl_vars['" . substr($index, 1) . "']]"; } else { $parts = explode('.', $index); $section = $parts[0]; $section_prop = isset($parts[1]) ? $parts[1] : 'index'; - $output .= "[\$this->_sections['$section']['$section_prop']]"; + $output .= "[@\$this->_sections['$section']['$section_prop']]"; } } else if ($index{0} == '.') { if ($index{1} == '$') - $output .= "[\$this->_tpl_vars['" . substr($index, 2) . "']]"; + $output .= "[@\$this->_tpl_vars['" . substr($index, 2) . "']]"; else $output .= "['" . substr($index, 1) . "']"; } else if (substr($index,0,2) == '->') {

« previous php.smarty.cvs (#459) next »