mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
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:
@@ -79,7 +79,7 @@ if (!defined('SMARTY_RESOURCE_DATE_FORMAT')) {
|
||||
*/
|
||||
if (!class_exists('Smarty_Autoloader', false)) {
|
||||
if (!class_exists('Smarty_Internal_Data', true)) {
|
||||
require_once 'Autoloader.php';
|
||||
require_once dirname(__FILE__) . '/Autoloader.php';
|
||||
Smarty_Autoloader::registerBC();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user