mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
- smaller speed optimization
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
11.11.2016
|
11.11.2016
|
||||||
- bugfix when Smarty is using a cached template object on Smarty::fetch() or Smarty::isCached() the inheritance data
|
- bugfix when Smarty is using a cached template object on Smarty::fetch() or Smarty::isCached() the inheritance data
|
||||||
must be removed https://github.com/smarty-php/smarty/issues/312
|
must be removed https://github.com/smarty-php/smarty/issues/312
|
||||||
|
- smaller speed optimization
|
||||||
|
|
||||||
08.11.2016
|
08.11.2016
|
||||||
- add bootstrap file to load and register Smarty_Autoloader. Change composer.json to make it known to composer
|
- add bootstrap file to load and register Smarty_Autoloader. Change composer.json to make it known to composer
|
||||||
|
@@ -108,7 +108,7 @@ class Smarty extends Smarty_Internal_TemplateBase
|
|||||||
/**
|
/**
|
||||||
* smarty version
|
* smarty version
|
||||||
*/
|
*/
|
||||||
const SMARTY_VERSION = '3.1.31-dev/43';
|
const SMARTY_VERSION = '3.1.31-dev/44';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* define variable scopes
|
* define variable scopes
|
||||||
@@ -1265,8 +1265,9 @@ class Smarty extends Smarty_Internal_TemplateBase
|
|||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function _isNewRelease ($dir) {
|
public function _isNewRelease($dir)
|
||||||
if (!is_file($file = $dir. 'version.txt') || file_get_contents($file) !== Smarty::SMARTY_VERSION) {
|
{
|
||||||
|
if (!is_file($file = $dir . preg_replace('#[^a-zA-Z0-9.-]#', '.', Smarty::SMARTY_VERSION) . 'version.txt')) {
|
||||||
file_put_contents($file, Smarty::SMARTY_VERSION);
|
file_put_contents($file, Smarty::SMARTY_VERSION);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user