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');