Commit d1633892 authored by webchick's avatar webchick
Browse files

#669522 by chx: Remove ugly code in getUpdaterFromDirectory.

parent ef6e0854
......@@ -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;
}
}
......
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