diff --git a/NEWS b/NEWS index 36f0566d..38d32098 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,4 @@ + - add $smarty.ldelim and $smarty.rdelim to smarty special var (Monte) - fall back to old uniqid()-behaviour when tempnam() fails in core.write_file.php (messju) - fix capitalize modifier, don't rely on buggy ucwords (Monte) diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index 22c39ff5..f29cd3c5 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -2040,6 +2040,14 @@ class Smarty_Compiler extends Smarty { $_max_index = 3; break; + case 'ldelim': + $compiled_ref = "'$this->left_delimiter'"; + break; + + case 'rdelim': + $compiled_ref = "'$this->right_delimiter'"; + break; + default: $this->_syntax_error('$smarty.' . $_ref . ' is an unknown reference', E_USER_ERROR, __FILE__, __LINE__); break;