summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 68dd8182b..ea5f62ab2 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -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.