- workaround for PHP 5.2.13 bug in method_exists()

This commit is contained in:
uwe.tews@googlemail.com
2011-04-22 02:19:14 +00:00
parent 44dc14891d
commit 6443a923cf
2 changed files with 182 additions and 181 deletions

View File

@@ -1,6 +1,7 @@
===== SVN trunk =====
22/04/2011
- bugfix allow only fixed string as file attribute at {extends} tag
- workaround for PHP 5.2.13 bug in method_exists()
01/04/2011
- bugfix do not run filters and default modifier when displaying the debug template

View File

@@ -765,8 +765,8 @@ class Smarty extends Smarty_Internal_Data {
return $this->wrapper->convert($name, $args);
}
// external Smarty methods ?
foreach(array('filter','register') as $external) {
if (method_exists("Smarty_Internal_{$external}",$name)) {
foreach(array('Filter','Register') as $external) {
if (class_exists("Smarty_Internal_{$external}") && method_exists("Smarty_Internal_{$external}",$name)) {
if (!isset($this->$external)) {
$class = "Smarty_Internal_{$external}";
$this->$external = new $class($this);