mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
- work around of a substr_compare bug in older PHP5 versions
This commit is contained in:
@@ -24,7 +24,7 @@ class Smarty_Internal_Compile_Private_Object_Block_Function extends Smarty_Inter
|
||||
public function compile($args, $compiler, $tag, $methode)
|
||||
{
|
||||
$this->compiler = $compiler;
|
||||
if (strlen($tag) < 5 || substr_compare($tag, 'close', -5, 5) != 0) {
|
||||
if (strlen($tag) < 5 || substr($tag, -5) != 'close') {
|
||||
// opening tag of block plugin
|
||||
$this->required_attributes = array();
|
||||
$this->optional_attributes = array('_any');
|
||||
@@ -57,4 +57,4 @@ class Smarty_Internal_Compile_Private_Object_Block_Function extends Smarty_Inter
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
Reference in New Issue
Block a user