From b854516e35272b1a837cea6cae47c7066a61dd7b Mon Sep 17 00:00:00 2001 From: mohrt Date: Thu, 27 Jun 2002 14:25:25 +0000 Subject: [PATCH] added {$smarty.version} variable --- Smarty_Compiler.class.php | 4 ++++ libs/Smarty_Compiler.class.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Smarty_Compiler.class.php b/Smarty_Compiler.class.php index d2bba055..dd14a99a 100644 --- a/Smarty_Compiler.class.php +++ b/Smarty_Compiler.class.php @@ -1337,6 +1337,10 @@ class Smarty_Compiler extends Smarty { $this->_syntax_error('$smarty' . implode('', $indexes) .' is an invalid reference'); } break; + + case 'version': + $compiled_ref = "'$this->_version'"; + break; default: $this->_syntax_error('$smarty.' . $ref . ' is an unknown reference'); diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index d2bba055..dd14a99a 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -1337,6 +1337,10 @@ class Smarty_Compiler extends Smarty { $this->_syntax_error('$smarty' . implode('', $indexes) .' is an invalid reference'); } break; + + case 'version': + $compiled_ref = "'$this->_version'"; + break; default: $this->_syntax_error('$smarty.' . $ref . ' is an unknown reference');