add $smarty.ldelim and $smarty.rdelim to smarty special var

This commit is contained in:
mohrt
2004-08-30 14:54:30 +00:00
parent 1a30d78e40
commit bf9153bd8a
2 changed files with 9 additions and 0 deletions

1
NEWS
View File

@@ -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 - fall back to old uniqid()-behaviour when tempnam() fails in
core.write_file.php (messju) core.write_file.php (messju)
- fix capitalize modifier, don't rely on buggy ucwords (Monte) - fix capitalize modifier, don't rely on buggy ucwords (Monte)

View File

@@ -2040,6 +2040,14 @@ class Smarty_Compiler extends Smarty {
$_max_index = 3; $_max_index = 3;
break; break;
case 'ldelim':
$compiled_ref = "'$this->left_delimiter'";
break;
case 'rdelim':
$compiled_ref = "'$this->right_delimiter'";
break;
default: default:
$this->_syntax_error('$smarty.' . $_ref . ' is an unknown reference', E_USER_ERROR, __FILE__, __LINE__); $this->_syntax_error('$smarty.' . $_ref . ' is an unknown reference', E_USER_ERROR, __FILE__, __LINE__);
break; break;