Skip to content
Snippets Groups Projects
Commit b47ecd8a authored by Angie Byron's avatar Angie Byron
Browse files

#320009 by Dave Reid: Catch D7 modules without a files[] line in their .info files.

parent 53f53b6d
No related branches found
No related tags found
No related merge requests found
......@@ -512,7 +512,8 @@ function update_check_incompatibility($name, $type = 'module') {
if (!isset($file)
|| !isset($file->info['core'])
|| $file->info['core'] != DRUPAL_CORE_COMPATIBILITY
|| version_compare(phpversion(), $file->info['php']) < 0) {
|| version_compare(phpversion(), $file->info['php']) < 0
|| ($type == 'module' && empty($file->info['files']))) {
return TRUE;
}
return FALSE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment