[prev in list] [next in list] [prev in thread] [next in thread] 

List:       smarty-cvs
Subject:    [SMARTY-CVS] cvs: smarty / Smarty_Compiler.class.php
From:       "Monte Ohrt" <monte () ispi ! net>
Date:       2002-06-27 14:25:26
[Download RAW message or body]

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



-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic