On 23-04-2009 at 15:23:07 CREATIVE0809 <trance_creat...@mail.ru> wrote:

--- a/State.php
+++ b/State.php
@@ -109,7 +109,7 @@ class PHPTAL_Php_State
     }

     private function _interpolateTalesVarsEscaped($matches) {
- return '<?php echo phptal_escape('.phptal_tale($matches[1]).', ENT_QUOTES, \''.$this->_encoding.'\');?>'; + return '<?php echo phptal_escape('.phptal_tale($matches[1]).', ENT_QUOTES, $tpl->getEncoding());?>';

Thanks for the patch, however I'm not going to apply it, because it introduces unnecessary runtime overhead, and doesn't solve the problem entirely (there are other places which depend on encoding).
Instead I've made PHPTAL reparse the template whenever encoding is changed.

--
regards, Kornel



_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to