mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 11:24:27 +02:00
- workaround for PHP 5.2.13 bug in method_exists()
This commit is contained in:
@@ -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
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user