- bugfix version 3.1.31 did fail under PHP 5.2

https://github.com/smarty-php/smarty/issues/365
This commit is contained in:
uwetews
2017-05-21 18:19:52 +02:00
parent 28688d5ce7
commit f860f7ce88
3 changed files with 5 additions and 3 deletions

View File

@@ -6,6 +6,8 @@
ACP cache if present, add some is_file() checks to avoid possible warnings on filemtime() ACP cache if present, add some is_file() checks to avoid possible warnings on filemtime()
caused by above functions. caused by above functions.
https://github.com/smarty-php/smarty/issues/341 https://github.com/smarty-php/smarty/issues/341
- bugfix version 3.1.31 did fail under PHP 5.2
https://github.com/smarty-php/smarty/issues/365
19.5.2017 19.5.2017
- change properties $accessMap and $obsoleteProperties from private to protected - change properties $accessMap and $obsoleteProperties from private to protected

View File

@@ -69,7 +69,7 @@ if (!defined('SMARTY_RESOURCE_DATE_FORMAT')) {
* Load Smarty_Autoloader * Load Smarty_Autoloader
*/ */
if (!class_exists('Smarty_Autoloader')) { if (!class_exists('Smarty_Autoloader')) {
include __DIR__ . '/bootstrap.php'; include dirname(__FILE__) . '/bootstrap.php';
} }
/** /**
@@ -108,7 +108,7 @@ class Smarty extends Smarty_Internal_TemplateBase
/** /**
* smarty version * smarty version
*/ */
const SMARTY_VERSION = '3.1.32-dev-6'; const SMARTY_VERSION = '3.1.32-dev-7';
/** /**
* define variable scopes * define variable scopes

View File

@@ -12,6 +12,6 @@
* Load and register Smarty Autoloader * Load and register Smarty Autoloader
*/ */
if (!class_exists('Smarty_Autoloader')) { if (!class_exists('Smarty_Autoloader')) {
require __DIR__ . '/Autoloader.php'; require dirname(__FILE__) . '/Autoloader.php';
} }
Smarty_Autoloader::register(); Smarty_Autoloader::register();