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