summaryrefslogtreecommitdiffstats
path: root/core/authorize.php
diff options
context:
space:
mode:
authorNathaniel Catchpole2014-03-17 11:57:35 (GMT)
committerNathaniel Catchpole2014-03-17 11:57:35 (GMT)
commitb4c561d0d5147d84a60399b2e17c6742719567e4 (patch)
tree35252c8e8bb6d747187ce2c1fb782e78189734da /core/authorize.php
parente1533e2a7359d2de9089ae3fd9fd323de2a864a3 (diff)
Issue #340723 by ParisLiakos, sun, Berdir, glennpratt, Cottser, swentel, tstoeckler, Xano, tim.plunkett, BassistJimmyJam: Make modules and installation profiles only require .info.yml files.
Diffstat (limited to 'core/authorize.php')
-rw-r--r--core/authorize.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/authorize.php b/core/authorize.php
index ba71c5d..8715fb0 100644
--- a/core/authorize.php
+++ b/core/authorize.php
@@ -65,9 +65,8 @@ $request = \Drupal::request();
// We have to enable the user and system modules, even to check access and
// display errors via the maintenance theme.
-$module_list['system'] = 'core/modules/system/system.module';
-$module_list['user'] = 'core/modules/user/user.module';
-\Drupal::moduleHandler()->setModuleList($module_list);
+\Drupal::moduleHandler()->addModule('system', 'core/modules/system');
+\Drupal::moduleHandler()->addModule('user', 'core/modules/user');
\Drupal::moduleHandler()->load('system');
\Drupal::moduleHandler()->load('user');