Commit acd5e952 authored by webchick's avatar webchick
Browse files

#320009 by Dave Reid: Remove notice about missing files[] array and prevent...

#320009 by Dave Reid: Remove notice about missing files[] array and prevent incompatible modules from being enabled.
parent 6575a26c
......@@ -95,6 +95,7 @@ function module_rebuild_cache() {
'package' => 'Other',
'version' => NULL,
'php' => DRUPAL_MINIMUM_PHP,
'files' => array(),
);
foreach ($files as $filename => $file) {
......
......@@ -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));
......
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