From f860f7ce8847faf5c2a637c01b023bd36a8148f8 Mon Sep 17 00:00:00 2001 From: uwetews Date: Sun, 21 May 2017 18:19:52 +0200 Subject: [PATCH] - bugfix version 3.1.31 did fail under PHP 5.2 https://github.com/smarty-php/smarty/issues/365 --- change_log.txt | 2 ++ libs/Smarty.class.php | 4 ++-- libs/bootstrap.php | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/change_log.txt b/change_log.txt index 0cfcb67f..3fd017df 100644 --- a/change_log.txt +++ b/change_log.txt @@ -6,6 +6,8 @@ ACP cache if present, add some is_file() checks to avoid possible warnings on filemtime() caused by above functions. 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 - change properties $accessMap and $obsoleteProperties from private to protected diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 0440eb62..4c72f8ce 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -69,7 +69,7 @@ if (!defined('SMARTY_RESOURCE_DATE_FORMAT')) { * Load 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 */ - const SMARTY_VERSION = '3.1.32-dev-6'; + const SMARTY_VERSION = '3.1.32-dev-7'; /** * define variable scopes diff --git a/libs/bootstrap.php b/libs/bootstrap.php index 32096087..7ce07805 100644 --- a/libs/bootstrap.php +++ b/libs/bootstrap.php @@ -12,6 +12,6 @@ * Load and register Smarty Autoloader */ if (!class_exists('Smarty_Autoloader')) { - require __DIR__ . '/Autoloader.php'; + require dirname(__FILE__) . '/Autoloader.php'; } Smarty_Autoloader::register();