mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-17 06:25:19 +02:00
- work around of a substr_compare bug in older PHP5 versions
This commit is contained in:
@@ -133,7 +133,7 @@ class Smarty_Internal_TemplateCompilerBase {
|
||||
return '';
|
||||
} else {
|
||||
// not an internal compiler tag
|
||||
if (strlen($tag) < 6 || substr_compare($tag, 'close', -5, 5) != 0) {
|
||||
if (strlen($tag) < 6 || substr($tag, -5) != 'close') {
|
||||
// check if tag is a registered object
|
||||
if (isset($this->smarty->registered_objects[$tag]) && isset($args['object_methode'])) {
|
||||
$methode = $args['object_methode'];
|
||||
|
Reference in New Issue
Block a user