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

Issue #2409515 by joelpittet: Updater::findInfoFile() was never updated for...

Issue #2409515 by joelpittet: Updater::findInfoFile() was never updated for .info -> .info.yml change.
parent 402bfd94
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -101,7 +101,7 @@ public static function findInfoFile($directory) {
return FALSE;
}
foreach ($info_files as $info_file) {
if (Unicode::substr($info_file->filename, 0, -5) == drupal_basename($directory)) {
if (Unicode::substr($info_file->filename, 0, -9) == drupal_basename($directory)) {
// Info file Has the same name as the directory, return it.
return $info_file->uri;
}
......
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