mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 03:44:26 +02:00
fix handling of block-methods of registered objects
thanks to El Hombre Gris
This commit is contained in:
3
NEWS
3
NEWS
@@ -1,3 +1,6 @@
|
|||||||
|
- fix handling of block-methods of registered objects (El Hombre Gris,
|
||||||
|
messju)
|
||||||
|
|
||||||
Version 2.6.13 (March 9th, 2006)
|
Version 2.6.13 (March 9th, 2006)
|
||||||
--------------------------------
|
--------------------------------
|
||||||
|
|
||||||
|
@@ -880,9 +880,9 @@ class Smarty_Compiler extends Smarty {
|
|||||||
$prefix .= "while (\$_block_repeat) { ob_start();";
|
$prefix .= "while (\$_block_repeat) { ob_start();";
|
||||||
$return = null;
|
$return = null;
|
||||||
$postfix = '';
|
$postfix = '';
|
||||||
} else {
|
} else {
|
||||||
$prefix = "\$_obj_block_content = ob_get_contents(); ob_end_clean(); ";
|
$prefix = "\$_obj_block_content = ob_get_contents(); ob_end_clean(); \$_block_repeat=false;";
|
||||||
$return = "\$_block_repeat=false; \$this->_reg_objects['$object'][0]->$obj_comp(\$this->_tag_stack[count(\$this->_tag_stack)-1][1], \$_obj_block_content, \$this, \$_block_repeat)";
|
$return = "\$this->_reg_objects['$object'][0]->$obj_comp(\$this->_tag_stack[count(\$this->_tag_stack)-1][1], \$_obj_block_content, \$this, \$_block_repeat)";
|
||||||
$postfix = "} array_pop(\$this->_tag_stack);";
|
$postfix = "} array_pop(\$this->_tag_stack);";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user