- bufix replace $smarty->triggerError() by exception

- removed obsolete {popup_init..} plugin from demo templates
This commit is contained in:
uwe.tews@googlemail.com
2011-02-13 22:04:58 +00:00
parent be268fe3b0
commit d38cb92059
2 changed files with 4 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
===== SVN trunk ===== ===== SVN trunk =====
13/02/2011
- bufix replace $smarty->triggerError() by exception
- removed obsolete {popup_init..} plugin from demo templates
===== Smarty 3.0.7 ===== ===== Smarty 3.0.7 =====
09/02/2011 09/02/2011

View File

@@ -105,7 +105,7 @@ class Smarty_Internal_Resource_Extends {
if ($_filepath != $_last) { if ($_filepath != $_last) {
if (preg_match_all("!({$this->_ldl}block\s(.+?){$this->_rdl})!", $_content, $_open) != if (preg_match_all("!({$this->_ldl}block\s(.+?){$this->_rdl})!", $_content, $_open) !=
preg_match_all("!({$this->_ldl}/block{$this->_rdl})!", $_content, $_close)) { 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); preg_match_all("!{$this->_ldl}block\s(.+?){$this->_rdl}|{$this->_ldl}/block{$this->_rdl}!", $_content, $_result, PREG_OFFSET_CAPTURE);
$_result_count = count($_result[0]); $_result_count = count($_result[0]);