Skip to content

Instantly share code, notes, and snippets.

@andypost
Created July 22, 2016 12:21
Show Gist options
  • Save andypost/28ecd2fa1ae07e3de7f678676b2c4615 to your computer and use it in GitHub Desktop.
Save andypost/28ecd2fa1ae07e3de7f678676b2c4615 to your computer and use it in GitHub Desktop.
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