From e7fd953534077388077e4eb0437d4d60422c26d5 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 4 Mar 2006 20:25:48 +0000 Subject: [PATCH] We need to move the processing of strings to AFTER the processing of tags --- template.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/template.php b/template.php index ea1d9fd..bde2705 100644 --- a/template.php +++ b/template.php @@ -374,9 +374,6 @@ class Template $location_start = -1; $location_end = -1; - // Process the empty phrase objects -- do this now so we don't have to worry about it when we're parsing later - $template = preg_replace('#\{@\\\"(.*?)\\\"\}#ie', '$this->_phrase_string(\'$1\')', $template); - while (1) { // Find the start language object tag @@ -432,6 +429,9 @@ class Template unset($arglist); } + + // Process the empty phrase objects -- do this now so we don't have to worry about it when we're parsing later + $template = preg_replace('#\{@\\\"(.*?)\\\"\}#ie', '$this->_phrase_string(\'$1\')', $template); return $template; } -- 2.43.5