#320009 by Dave Reid: Remove notice about missing files[] array and prevent incompatible modules from being enabled.
parent
6575a26c88
commit
acd5e95200
includes
modules/system
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue