From 3626e37c533f51e9f36939d93d8800704f3c84fe Mon Sep 17 00:00:00 2001 From: uwetews Date: Sun, 14 Oct 2018 04:18:45 +0200 Subject: [PATCH] - bugfix autoloader exit shortcut https://github.com/smarty-php/smarty/issues/467 --- change_log.txt | 5 ++++- libs/Autoloader.php | 2 +- libs/Smarty.class.php | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/change_log.txt b/change_log.txt index cc7fede2..c68dc2f9 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,4 +1,7 @@ -===== 3.1.34-dev-2 ===== +===== 3.1.34-dev-5 ===== +14.10.2018 + - bugfix autoloader exit shortcut https://github.com/smarty-php/smarty/issues/467 + 11.10.2018 - bugfix {insert} not works when caching is enabled and included template is present https://github.com/smarty-php/smarty/issues/496 diff --git a/libs/Autoloader.php b/libs/Autoloader.php index e4dc450f..c09361b6 100644 --- a/libs/Autoloader.php +++ b/libs/Autoloader.php @@ -90,7 +90,7 @@ class Smarty_Autoloader */ public static function autoload($class) { - if ($class[ 0 ] !== 'S' && strpos($class, 'Smarty') !== 0) { + if ($class[ 0 ] !== 'S' || strpos($class, 'Smarty') !== 0) { return; } $_class = strtolower($class); diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 2565d3f6..0112ebdc 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -112,7 +112,7 @@ class Smarty extends Smarty_Internal_TemplateBase /** * smarty version */ - const SMARTY_VERSION = '3.1.34-dev-4'; + const SMARTY_VERSION = '3.1.34-dev-5'; /** * define variable scopes */