Skip to content
Snippets Groups Projects
Commit 7d4a02a3 authored by Angie Byron's avatar Angie Byron
Browse files

#829378 by David_Rothstein: Fixed Update system should use the API to identify...

#829378 by David_Rothstein: Fixed Update system should use the API to identify the install profile, rather than preg_match().
parent 4e28fbfd
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -372,10 +372,11 @@ function system_requirements($phase) {
// Display an error if a newly introduced dependency in a module is not resolved.
if ($phase == 'update') {
$profile = drupal_get_profile();
$files = system_rebuild_module_data();
foreach ($files as $module => $file) {
// Ignore disabled modules and install profiles.
if (!$file->status || preg_match('/\.profile$/', $file->filename)) {
if (!$file->status || $module == $profile) {
continue;
}
// Check the module's PHP version.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment