Re: Sweatin to the Integrated Template

From: Date: Tue, 17 Sep 2002 05:55:15 +0000
Subject: Re: Sweatin to the Integrated Template
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-2316@lists.php.net to get a copy of this message
Am Mo 16.September 2002 22:18 schrieb Adam Morton: > Is there a flag or something I can set to fix this? I looked at the > source with no luck. The replacement is done in line 470 with a preg_replace($regs, ...). The regs array is being filled in line 451. There is no g flag added. Just changing the "@"; at the end of line 451 to "@g" should do, I believe. Will you please try this patch: --- IT.php.orig Tue Sep 17 07:53:43 2002 +++ IT.php Tue Sep 17 07:53:50 2002 @@ -448,7 +448,7 @@ if ($this->clearCacheOnParse) { foreach ($this->variableCache as $name => $value) { - $regs[] = "@" . $this->openingDelimiter . $name . $this->closingDelimiter . "@"; + $regs[] = "@" . $this->openingDelimiter . $name . $this->closingDelimiter . "@g"; $values[] = $value; } $this->variableCache = array(); Kristian -- http://www.amazon.de/exec/obidos/wishlist/18E5SVQ5HJZXG

« previous php.pear.general (#2316) next »