File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 137137/*
138138 * 3. Load some other essential includes.
139139 */
140- $ loader = require SMF \Config::$ vendordir . '/autoload.php ' ;
141- $ third_party_mappers = [];
142140
143- // Ensure $sourcedir is set to something valid.
144- if (class_exists (Config::class, false ) && isset (Config::$ sourcedir )) {
145- $ sourcedir = Config::$ sourcedir ;
146- }
147-
148- if (empty ($ sourcedir ) || !is_dir ($ sourcedir )) {
149- $ sourcedir = __DIR__ ;
150- }
151-
152- // Do any third-party scripts want in on the fun?
153- if (!defined ('SMF_INSTALLING ' ) && class_exists (Config::class, false )) {
154- if (!class_exists (IntegrationHook::class, false ) && is_file ($ sourcedir . '/IntegrationHook.php ' )) {
155- require_once $ sourcedir . '/IntegrationHook.php ' ;
156- }
157-
158- if (class_exists (IntegrationHook::class, false )) {
159- IntegrationHook::call ('integrate_autoload ' , [&$ third_party_mappers ]);
160- }
161- }
162-
163- foreach ($ third_party_mappers as $ prefix => $ dirname ) {
164- $ loader ->addPsr4 ($ prefix , $ dirname );
165- }
141+ require_once SMF \Config::$ sourcedir . '/Autoloader.php ' ;
166142
167143// Ensure we don't trip over disabled internal functions
168144require_once SMF \Config::$ sourcedir . '/Subs-Compat.php ' ;
You can’t perform that action at this time.
0 commit comments