Commit 402bfd94 authored by webchick's avatar webchick

Revert "Issue #2409515 by joelpittet: Updater::findInfoFile() lacks test coverage"

Wrong commit message.

This reverts commit 96b7b02e.
parent 96b7b02e
......@@ -101,7 +101,7 @@ public static function findInfoFile($directory) {
return FALSE;
}
foreach ($info_files as $info_file) {
if (Unicode::substr($info_file->filename, 0, -9) == drupal_basename($directory)) {
if (Unicode::substr($info_file->filename, 0, -5) == drupal_basename($directory)) {
// Info file Has the same name as the directory, return it.
return $info_file->uri;
}
......
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