added {$smarty.version} variable

This commit is contained in:
mohrt
2002-06-27 14:25:25 +00:00
parent 4139648712
commit b854516e35
2 changed files with 8 additions and 0 deletions

View File

@@ -1337,6 +1337,10 @@ class Smarty_Compiler extends Smarty {
$this->_syntax_error('$smarty' . implode('', $indexes) .' is an invalid reference'); $this->_syntax_error('$smarty' . implode('', $indexes) .' is an invalid reference');
} }
break; break;
case 'version':
$compiled_ref = "'$this->_version'";
break;
default: default:
$this->_syntax_error('$smarty.' . $ref . ' is an unknown reference'); $this->_syntax_error('$smarty.' . $ref . ' is an unknown reference');

View File

@@ -1337,6 +1337,10 @@ class Smarty_Compiler extends Smarty {
$this->_syntax_error('$smarty' . implode('', $indexes) .' is an invalid reference'); $this->_syntax_error('$smarty' . implode('', $indexes) .' is an invalid reference');
} }
break; break;
case 'version':
$compiled_ref = "'$this->_version'";
break;
default: default:
$this->_syntax_error('$smarty.' . $ref . ' is an unknown reference'); $this->_syntax_error('$smarty.' . $ref . ' is an unknown reference');