mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
- bufix replace $smarty->triggerError() by exception
- removed obsolete {popup_init..} plugin from demo templates
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
===== SVN trunk =====
|
||||
13/02/2011
|
||||
- bufix replace $smarty->triggerError() by exception
|
||||
- removed obsolete {popup_init..} plugin from demo templates
|
||||
|
||||
===== Smarty 3.0.7 =====
|
||||
09/02/2011
|
||||
|
@@ -105,7 +105,7 @@ class Smarty_Internal_Resource_Extends {
|
||||
if ($_filepath != $_last) {
|
||||
if (preg_match_all("!({$this->_ldl}block\s(.+?){$this->_rdl})!", $_content, $_open) !=
|
||||
preg_match_all("!({$this->_ldl}/block{$this->_rdl})!", $_content, $_close)) {
|
||||
$this->smarty->triggerError("unmatched {block} {/block} pairs in file '$_filepath'");
|
||||
throw new SmartyException("unmatched {block} {/block} pairs in file '$_filepath'");
|
||||
}
|
||||
preg_match_all("!{$this->_ldl}block\s(.+?){$this->_rdl}|{$this->_ldl}/block{$this->_rdl}!", $_content, $_result, PREG_OFFSET_CAPTURE);
|
||||
$_result_count = count($_result[0]);
|
||||
|
Reference in New Issue
Block a user