- Timestamp:
- Sep 16, 2008, 12:17:20 PM (16 years ago)
- Location:
- trunk/include/smarty
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/smarty/NEWS
r2216 r2538 1 Version 2.6.20 (Aug 15th, 2008) 2 ------------------------------- 3 4 - fix cache tag bug when multiple cache tags on a page (mankyd, 5 mohrt) 6 - fix /e tag checking when using arrays with regex_replace 7 (mohrt) 8 - fix that function results can be used with condition like "is even" in 9 {if} tags (U.Tews) 10 - fix handling of non-empty <pre>-tags and empty <textarea>- and 11 <script>-tags (Spuerhund, messju) 12 1 13 Version 2.6.19 (Feb 11th, 2008) 2 14 ------------------------------- -
trunk/include/smarty/README
r2216 r2538 3 3 Smarty - the PHP compiling template engine 4 4 5 VERSION: 2.6. 195 VERSION: 2.6.20 6 6 7 7 AUTHORS: -
trunk/include/smarty/libs/Config_File.class.php
-
Property
svn:keywords
changed from
Author Date Id Revision
toAuthor Date Revision
r2216 r2538 19 19 * 20 20 * @link http://smarty.php.net/ 21 * @version 2.6. 1921 * @version 2.6.20 22 22 * @copyright Copyright: 2001-2005 New Digital Group, Inc. 23 23 * @author Andrei Zmievski <andrei@php.net> … … 26 26 */ 27 27 28 /* $Id $ */28 /* $Id: Config_File.class.php 2702 2007-03-08 19:11:22Z mohrt $ */ 29 29 30 30 /** -
Property
svn:keywords
changed from
-
trunk/include/smarty/libs/Smarty.class.php
-
Property
svn:keywords
changed from
Author Date Id Revision
toAuthor Date Revision
r2231 r2538 28 28 * @author Andrei Zmievski <andrei@php.net> 29 29 * @package Smarty 30 * @version 2.6. 1930 * @version 2.6.20 31 31 */ 32 32 33 /* $Id $ */33 /* $Id: Smarty.class.php 2722 2007-06-18 14:29:00Z danilo $ */ 34 34 35 35 /** … … 465 465 * @var string 466 466 */ 467 var $_version = '2.6. 19';467 var $_version = '2.6.20'; 468 468 469 469 /** … … 1058 1058 // var non-existant, return valid reference 1059 1059 $_tmp = null; 1060 return $_tmp; 1060 return $_tmp; 1061 1061 } 1062 1062 } … … 1117 1117 { 1118 1118 static $_cache_info = array(); 1119 1119 1120 1120 $_smarty_old_error_level = $this->debugging ? error_reporting() : error_reporting(isset($this->error_reporting) 1121 1121 ? $this->error_reporting : error_reporting() & ~E_NOTICE); … … 1941 1941 return eval($code); 1942 1942 } 1943 1943 1944 1944 /** 1945 1945 * Extracts the filter name from the given callback 1946 * 1946 * 1947 1947 * @param callback $function 1948 1948 * @return string … … 1959 1959 } 1960 1960 } 1961 1961 1962 1962 /**#@-*/ 1963 1963 -
Property
svn:keywords
changed from
-
trunk/include/smarty/libs/Smarty_Compiler.class.php
-
Property
svn:keywords
changed from
Author Date Id Revision
toAuthor Date Revision
r2216 r2538 22 22 * @author Monte Ohrt <monte at ohrt dot com> 23 23 * @author Andrei Zmievski <andrei@php.net> 24 * @version 2.6. 1924 * @version 2.6.20 25 25 * @copyright 2001-2005 New Digital Group, Inc. 26 26 * @package Smarty 27 27 */ 28 28 29 /* $Id $ */29 /* $Id: Smarty_Compiler.class.php 2773 2008-08-12 18:17:51Z Uwe.Tews $ */ 30 30 31 31 /** … … 1364 1364 expression. The start of the expression is on the stack. 1365 1365 Otherwise, we operate on the last encountered token. */ 1366 if ($tokens[$i-1] == ')') 1366 if ($tokens[$i-1] == ')') { 1367 1367 $is_arg_start = array_pop($is_arg_stack); 1368 else 1368 if ($is_arg_start != 0) { 1369 if (preg_match('~^' . $this->_func_regexp . '$~', $tokens[$is_arg_start-1])) { 1370 $is_arg_start--; 1371 } 1372 } 1373 } else 1369 1374 $is_arg_start = $i-1; 1370 1375 /* Construct the argument for 'is' expression, so it knows -
Property
svn:keywords
changed from
-
trunk/include/smarty/libs/internals/core.process_compiled_include.php
r2216 r2538 26 26 } 27 27 28 foreach ($smarty->_cache_ serialsas $_include_file_path=>$_cache_serial) {28 foreach ($smarty->_cache_info['cache_serials'] as $_include_file_path=>$_cache_serial) { 29 29 $_return = preg_replace_callback('!(\{nocache\:('.$_cache_serial.')#(\d+)\})!s', 30 30 array(&$smarty, '_process_compiled_include_callback'), -
trunk/include/smarty/libs/plugins/modifier.regex_replace.php
r2216 r2538 23 23 function smarty_modifier_regex_replace($string, $search, $replace) 24 24 { 25 if(is_array($search)) { 26 foreach($search as $idx => $s) 27 $search[$idx] = _smarty_regex_replace_check($s); 28 } else { 29 $search = _smarty_regex_replace_check($search); 30 } 31 32 return preg_replace($search, $replace, $string); 33 } 34 35 function _smarty_regex_replace_check($search) 36 { 25 37 if (($pos = strpos($search,"\0")) !== false) 26 38 $search = substr($search,0,$pos); … … 29 41 $search = substr($search, 0, -strlen($match[1])) . preg_replace('![e\s]+!', '', $match[1]); 30 42 } 31 32 return preg_replace($search, $replace, $string); 43 return $search; 33 44 } 34 45 -
trunk/include/smarty/libs/plugins/outputfilter.trimwhitespace.php
r2216 r2538 29 29 { 30 30 // Pull out the script blocks 31 preg_match_all("!<script[^>] +>.*?</script>!is", $source, $match);31 preg_match_all("!<script[^>]*?>.*?</script>!is", $source, $match); 32 32 $_script_blocks = $match[0]; 33 $source = preg_replace("!<script[^>] +>.*?</script>!is",33 $source = preg_replace("!<script[^>]*?>.*?</script>!is", 34 34 '@@@SMARTY:TRIM:SCRIPT@@@', $source); 35 35 36 36 // Pull out the pre blocks 37 preg_match_all("!<pre >.*?</pre>!is", $source, $match);37 preg_match_all("!<pre[^>]*?>.*?</pre>!is", $source, $match); 38 38 $_pre_blocks = $match[0]; 39 $source = preg_replace("!<pre >.*?</pre>!is",39 $source = preg_replace("!<pre[^>]*?>.*?</pre>!is", 40 40 '@@@SMARTY:TRIM:PRE@@@', $source); 41 41 42 42 // Pull out the textarea blocks 43 preg_match_all("!<textarea[^>] +>.*?</textarea>!is", $source, $match);43 preg_match_all("!<textarea[^>]*?>.*?</textarea>!is", $source, $match); 44 44 $_textarea_blocks = $match[0]; 45 $source = preg_replace("!<textarea[^>] +>.*?</textarea>!is",45 $source = preg_replace("!<textarea[^>]*?>.*?</textarea>!is", 46 46 '@@@SMARTY:TRIM:TEXTAREA@@@', $source); 47 47
Note: See TracChangeset
for help on using the changeset viewer.