summaryrefslogtreecommitdiff
path: root/modules/system/system.admin.inc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-10-12 02:52:52 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-10-12 02:52:52 +0000
commitacd5e95200790938c2b6b5042972100d47847a68 (patch)
tree70731b5746f51acc3856e983999279287ca73c5f /modules/system/system.admin.inc
parent6575a26c88bc8dcc739a58d389c9eec642fff233 (diff)
downloadbrdo-acd5e95200790938c2b6b5042972100d47847a68.tar.gz
brdo-acd5e95200790938c2b6b5042972100d47847a68.tar.bz2
#320009 by Dave Reid: Remove notice about missing files[] array and prevent incompatible modules from being enabled.
Diffstat (limited to 'modules/system/system.admin.inc')
-rw-r--r--modules/system/system.admin.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index 2cf868bec..a0394ce74 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -742,7 +742,7 @@ function _system_modules_build_row($info, $extra) {
$status_long = '';
// Check the core compatibility.
- if (!isset($info['core']) || $info['core'] != DRUPAL_CORE_COMPATIBILITY) {
+ if (!isset($info['core']) || $info['core'] != DRUPAL_CORE_COMPATIBILITY || empty($info['files'])) {
$compatible = FALSE;
$status_short .= t('Incompatible with this version of Drupal core. ');
$status_long .= t('This version is incompatible with the !core_version version of Drupal core. ', array('!core_version' => VERSION));