mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 03:44:26 +02:00
- workaround for PHP 5.2.13 bug in method_exists()
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
===== SVN trunk =====
|
===== SVN trunk =====
|
||||||
22/04/2011
|
22/04/2011
|
||||||
- bugfix allow only fixed string as file attribute at {extends} tag
|
- bugfix allow only fixed string as file attribute at {extends} tag
|
||||||
|
- workaround for PHP 5.2.13 bug in method_exists()
|
||||||
|
|
||||||
01/04/2011
|
01/04/2011
|
||||||
- bugfix do not run filters and default modifier when displaying the debug template
|
- 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);
|
return $this->wrapper->convert($name, $args);
|
||||||
}
|
}
|
||||||
// external Smarty methods ?
|
// external Smarty methods ?
|
||||||
foreach(array('filter','register') as $external) {
|
foreach(array('Filter','Register') as $external) {
|
||||||
if (method_exists("Smarty_Internal_{$external}",$name)) {
|
if (class_exists("Smarty_Internal_{$external}") && method_exists("Smarty_Internal_{$external}",$name)) {
|
||||||
if (!isset($this->$external)) {
|
if (!isset($this->$external)) {
|
||||||
$class = "Smarty_Internal_{$external}";
|
$class = "Smarty_Internal_{$external}";
|
||||||
$this->$external = new $class($this);
|
$this->$external = new $class($this);
|
||||||
|
Reference in New Issue
Block a user