Created
July 22, 2016 12:21
-
-
Save andypost/28ecd2fa1ae07e3de7f678676b2c4615 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git core/includes/install.inc core/includes/install.inc | |
index 61725da..43c66d6 100644 | |
--- core/includes/install.inc | |
+++ core/includes/install.inc | |
@@ -940,6 +940,7 @@ function drupal_check_profile($profile) { | |
$listing = new ExtensionDiscovery(\Drupal::root()); | |
$module_list = $listing->scan('module'); | |
foreach ($info['dependencies'] as $module) { | |
+ if (empty($module_list[$module])) assert(FALSE, $module); | |
$file = \Drupal::root() . '/' . $module_list[$module]->getPath() . "/$module.install"; | |
if (is_file($file)) { | |
require_once $file; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment