Commit 7d4a02a3 authored by webchick's avatar webchick

#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
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment