mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 19:34:27 +02:00
- fix short append/prepend attributes in {block} tags
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
12/12/2009
|
||||||
|
- fix short append/prepend attributes in {block} tags
|
||||||
|
|
||||||
12/11/2009
|
12/11/2009
|
||||||
- bugfix on clear_compiled_tpl (avoid possible warning)
|
- bugfix on clear_compiled_tpl (avoid possible warning)
|
||||||
|
|
||||||
|
@@ -69,9 +69,9 @@ class Smarty_Internal_Compile_Extends extends Smarty_Internal_CompileBase {
|
|||||||
} else {
|
} else {
|
||||||
$this->smarty->block_data[$_name]['source'] = $block_content;
|
$this->smarty->block_data[$_name]['source'] = $block_content;
|
||||||
}
|
}
|
||||||
if (preg_match('/(.?)(append=true)(.*)/', $block_tag, $_match) != 0) {
|
if (preg_match('/(.?)(append)(.*)/', $block_tag, $_match) != 0) {
|
||||||
$this->smarty->block_data[$_name]['mode'] = 'append';
|
$this->smarty->block_data[$_name]['mode'] = 'append';
|
||||||
} elseif (preg_match('/(.?)(prepend=true)(.*)/', $block_tag, $_match) != 0) {
|
} elseif (preg_match('/(.?)(prepend)(.*)/', $block_tag, $_match) != 0) {
|
||||||
$this->smarty->block_data[$_name]['mode'] = 'prepend';
|
$this->smarty->block_data[$_name]['mode'] = 'prepend';
|
||||||
} else {
|
} else {
|
||||||
$this->smarty->block_data[$_name]['mode'] = 'replace';
|
$this->smarty->block_data[$_name]['mode'] = 'replace';
|
||||||
|
@@ -124,9 +124,9 @@ class Smarty_Internal_Resource_Extends {
|
|||||||
} else {
|
} else {
|
||||||
$this->smarty->block_data[$_name]['source'] = $block_content;
|
$this->smarty->block_data[$_name]['source'] = $block_content;
|
||||||
}
|
}
|
||||||
if (preg_match('/(.?)(append=true)(.*)/', $block_tag, $_match) != 0) {
|
if (preg_match('/(.?)(append)(.*)/', $block_tag, $_match) != 0) {
|
||||||
$this->smarty->block_data[$_name]['mode'] = 'append';
|
$this->smarty->block_data[$_name]['mode'] = 'append';
|
||||||
} elseif (preg_match('/(.?)(prepend=true)(.*)/', $block_tag, $_match) != 0) {
|
} elseif (preg_match('/(.?)(prepend)(.*)/', $block_tag, $_match) != 0) {
|
||||||
$this->smarty->block_data[$_name]['mode'] = 'prepend';
|
$this->smarty->block_data[$_name]['mode'] = 'prepend';
|
||||||
} else {
|
} else {
|
||||||
$this->smarty->block_data[$_name]['mode'] = 'replace';
|
$this->smarty->block_data[$_name]['mode'] = 'replace';
|
||||||
|
Reference in New Issue
Block a user