mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
added {$smarty.version} variable
This commit is contained in:
@@ -1338,6 +1338,10 @@ class Smarty_Compiler extends Smarty {
|
||||
}
|
||||
break;
|
||||
|
||||
case 'version':
|
||||
$compiled_ref = "'$this->_version'";
|
||||
break;
|
||||
|
||||
default:
|
||||
$this->_syntax_error('$smarty.' . $ref . ' is an unknown reference');
|
||||
break;
|
||||
|
@@ -1338,6 +1338,10 @@ class Smarty_Compiler extends Smarty {
|
||||
}
|
||||
break;
|
||||
|
||||
case 'version':
|
||||
$compiled_ref = "'$this->_version'";
|
||||
break;
|
||||
|
||||
default:
|
||||
$this->_syntax_error('$smarty.' . $ref . ' is an unknown reference');
|
||||
break;
|
||||
|
Reference in New Issue
Block a user