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

@@ -1338,6 +1338,10 @@ class Smarty_Compiler extends Smarty {
} }
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');
break; break;

View File

@@ -1338,6 +1338,10 @@ class Smarty_Compiler extends Smarty {
} }
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');
break; break;