do not load "Autoloader" from include path

loading it from include path (without abs path) can be dangerous, can load some other project's Autoloader.php instead the right one.
This commit is contained in:
Elan Ruusamäe
2015-10-13 10:32:04 +03:00
parent 788566cf70
commit 87a04b2ef6

View File

@@ -79,7 +79,7 @@ if (!defined('SMARTY_RESOURCE_DATE_FORMAT')) {
*/ */
if (!class_exists('Smarty_Autoloader', false)) { if (!class_exists('Smarty_Autoloader', false)) {
if (!class_exists('Smarty_Internal_Data', true)) { if (!class_exists('Smarty_Internal_Data', true)) {
require_once 'Autoloader.php'; require_once dirname(__FILE__) . '/Autoloader.php';
Smarty_Autoloader::registerBC(); Smarty_Autoloader::registerBC();
} }
} }