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

#669522 by chx: Remove ugly code in getUpdaterFromDirectory.

parent ef6e0854
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
......@@ -113,7 +113,7 @@ public static function getUpdaterFromDirectory($directory) {
$updaters = drupal_get_updaters();
foreach ($updaters as $updater) {
$class = $updater['class'];
if (call_user_func("{$class}::canUpdateDirectory", $directory)) {
if (call_user_func(array($class, 'canUpdateDirectory'), $directory)) {
return $class;
}
}
......
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