mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
add $smarty.ldelim and $smarty.rdelim to smarty special var
This commit is contained in:
1
NEWS
1
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
|
- 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)
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user