1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-08 15:46:44 +02:00

Moved autoload responsibility to e107_class.php

Instead of every independently operating client code figuring out its
own autoload policies, the e107 class file e107_class.php now takes care
of autoloading.

Any client that uses the e107 class will automatically benefit from
autoloading for e107.

This cuts down on potential code duplication, and e107::getSingleton()
is no longer tied to trying to figure out the class path.

This commit REMOVES support for the unused constant flag
E107_DISABLE_AUTOLOAD introduced in
bdef2707b4 and the unused autoload code
introduced in f4cee92890.
This commit is contained in:
Nick Liu
2018-10-31 08:22:14 -05:00
parent ee1a5b1278
commit 4c6828be93
4 changed files with 9 additions and 80 deletions

View File

@@ -156,7 +156,6 @@ class e_thumbpage
@require($tmp.DIRECTORY_SEPARATOR.'core_functions.php');
//e107 class
@require($tmp.DIRECTORY_SEPARATOR.'e107_class.php');
e107::autoload_register(array('e107', 'autoload'));
$e107_paths = compact(
'ADMIN_DIRECTORY',