From bf9153bd8a898d80fb8e68a83a80100b88dec5a7 Mon Sep 17 00:00:00 2001 From: mohrt Date: Mon, 30 Aug 2004 14:54:30 +0000 Subject: [PATCH] add $smarty.ldelim and $smarty.rdelim to smarty special var --- NEWS | 1 + libs/Smarty_Compiler.class.php | 8 ++++++++ 2 files changed, 9 insertions(+) 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;