by Dave Reid: Remove notice about missing files[] array and prevent incompatible modules from being enabled.

merge-requests/26/head
Angie Byron 2008-10-12 02:52:52 +00:00
parent 6575a26c88
commit acd5e95200
2 changed files with 2 additions and 1 deletions
includes
modules/system

View File

@ -95,6 +95,7 @@ function module_rebuild_cache() {
'package' => 'Other',
'version' => NULL,
'php' => DRUPAL_MINIMUM_PHP,
'files' => array(),
);
foreach ($files as $filename => $file) {

View 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));