1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Forward compatibility with Composer autoloading

This commit is contained in:
Deltik 2018-12-23 03:24:09 -06:00 committed by Nick Liu
parent 2a69227135
commit f8d0b628e0
No known key found for this signature in database
GPG Key ID: 1167C5F9C9897637

View File

@ -5234,7 +5234,12 @@ class e107
e107::autoload_register(array(e107::class, 'autoload'));
// Forward compatibility with e107 v3 Composer autoloading
$vendor_autoload_file = __DIR__."/vendor/autoload.php";
if (file_exists($vendor_autoload_file))
{
include_once($vendor_autoload_file);
}
/**
* Interface e_admin_addon_interface @move to separate addons file?