removed encoding parameter from write function, fixes problems on php 4.2
authorGabriel Wicke <gwicke@users.mediawiki.org>
Wed, 23 Jun 2004 23:34:37 +0000 (23:34 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Wed, 23 Jun 2004 23:34:37 +0000 (23:34 +0000)
PHPTAL-NP-0.7.0/libs/PHPTAL/OutputControl.php

index a62bf92..cb118f9 100644 (file)
@@ -67,7 +67,9 @@ class PHPTAL_OutputControl
             // support for cyrillic strings thanks to Igor E. Poteryaev
             // **** hacked to htmlspecialchars() to avoid messing with text.
             // **** PHP prior to 4.3.7 contains bugs that mess up Greek.
-            $this->_buffer .= htmlspecialchars($str, $this->_quoteStyle, $this->_encoding);
+           // **** removed encoding parameter, this messed up titles in older versions of php
+           // **** we deal with encoding in Language.php
+            $this->_buffer .= htmlspecialchars($str, $this->_quoteStyle);
         }
     }