From 159fbc8377832ff8e931cef0413ee571c494ac84 Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 16 Sep 2008 10:17:20 +0000 Subject: - upgrade smarty to latest release 2.6.20 git-svn-id: http://piwigo.org/svn/trunk@2538 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/smarty/NEWS | 12 ++++++++++++ include/smarty/README | 2 +- include/smarty/libs/Config_File.class.php | 4 ++-- include/smarty/libs/Smarty.class.php | 16 ++++++++-------- include/smarty/libs/Smarty_Compiler.class.php | 13 +++++++++---- .../libs/internals/core.process_compiled_include.php | 2 +- include/smarty/libs/plugins/modifier.regex_replace.php | 15 +++++++++++++-- .../smarty/libs/plugins/outputfilter.trimwhitespace.php | 14 +++++++------- 8 files changed, 53 insertions(+), 25 deletions(-) (limited to 'include') diff --git a/include/smarty/NEWS b/include/smarty/NEWS index fa550ff18..1e3b77ecc 100644 --- a/include/smarty/NEWS +++ b/include/smarty/NEWS @@ -1,3 +1,15 @@ +Version 2.6.20 (Aug 15th, 2008) +------------------------------- + +- fix cache tag bug when multiple cache tags on a page (mankyd, + mohrt) +- fix /e tag checking when using arrays with regex_replace + (mohrt) +- fix that function results can be used with condition like "is even" in + {if} tags (U.Tews) +- fix handling of non-empty
-tags and empty !is", $source, $match);
+    preg_match_all("!]*?>.*?!is", $source, $match);
     $_textarea_blocks = $match[0];
-    $source = preg_replace("!]+>.*?!is",
+    $source = preg_replace("!]*?>.*?!is",
                            '@@@SMARTY:TRIM:TEXTAREA@@@', $source);
 
     // remove all leading spaces, tabs and carriage returns NOT
-- 
cgit v1.2.3