Skip to content
Snippets Groups Projects
Commit 2a5f772d authored by Niels de Feyter's avatar Niels de Feyter
Browse files

Issue #2472041 by skelly: EOL Agnostic Info File Parsing.

parent 459bca50
Branches
Tags 7.x-1.4
No related merge requests found
...@@ -381,7 +381,7 @@ function _unused_modules_add_info_file_information(&$modules = array()) { ...@@ -381,7 +381,7 @@ function _unused_modules_add_info_file_information(&$modules = array()) {
$error_message = "No .info file found for module '" . $module->name . "'"; $error_message = "No .info file found for module '" . $module->name . "'";
throw new Exception($error_message); throw new Exception($error_message);
} }
$info_file = explode(PHP_EOL, file_get_contents($module->info_file)); $info_file = file($module->info_file, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
// Traverse all lines in .info and look for the line that starts // Traverse all lines in .info and look for the line that starts
// with "project". When found, add the project name to the module object. // with "project". When found, add the project name to the module object.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment