cvs: smarty / Smarty_Compiler.class.php

From: Date: Thu, 27 Jun 2002 14:25:26 +0000
Subject: cvs: smarty / Smarty_Compiler.class.php
Groups: php.smarty.cvs 
Request: Send a blank email to php-smarty-cvs+get-165@lists.php.net to get a copy of this message
mohrt Thu Jun 27 10:25:26 2002 EDT Modified files: /smarty Smarty_Compiler.class.php Log: added {$smarty.version} variable Index: smarty/Smarty_Compiler.class.php diff -u smarty/Smarty_Compiler.class.php:1.118 smarty/Smarty_Compiler.class.php:1.119 --- smarty/Smarty_Compiler.class.php:1.118 Wed Jun 26 10:51:11 2002 +++ smarty/Smarty_Compiler.class.php Thu Jun 27 10:25:25 2002 @@ -1337,6 +1337,10 @@ $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');

« previous php.smarty.cvs (#165) next »