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;
|
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;
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user