Fix for resetting otag/ctag to initial values between successive renders of same template.

This commit is contained in:
Justin Hileman
2010-06-11 16:29:59 -04:00
parent 12096e0b8c
commit a978b6ba45
+6
View File
@@ -324,6 +324,9 @@ class Mustache {
return $template; return $template;
} }
$otag_orig = $this->_otag;
$ctag_orig = $this->_ctag;
$otag = preg_quote($this->_otag); $otag = preg_quote($this->_otag);
$ctag = preg_quote($this->_ctag); $ctag = preg_quote($this->_ctag);
@@ -342,6 +345,9 @@ class Mustache {
$template = substr($template, $offset + strlen($tag)); $template = substr($template, $offset + strlen($tag));
} }
$this->_otag = $otag_orig;
$this->_ctag = $ctag_orig;
return $html . $template; return $html . $template;
} }