diff --git a/core/modules/system/lib/Drupal/system/Controller/SystemController.php b/core/modules/system/lib/Drupal/system/Controller/SystemController.php index d2261d9..5c62574 100644 --- a/core/modules/system/lib/Drupal/system/Controller/SystemController.php +++ b/core/modules/system/lib/Drupal/system/Controller/SystemController.php @@ -298,14 +298,14 @@ public function themesPage() { } uasort($theme_groups['enabled'], function($a, $b) { - if ($a->is_default) { - return -1; - } - if ($b->is_default) { - return 1; - } - return strcasecmp($a->info['name'], $b->info['name']); - }); + if ($a->is_default) { + return -1; + } + if ($b->is_default) { + return 1; + } + return strcasecmp($a->info['name'], $b->info['name']); + }); $this->moduleHandler()->alter('system_themes_page', $theme_groups); $build = array(); @@ -327,16 +327,4 @@ public function themeSetDefault() { return system_theme_default(); } - /** - * Array sorting callback; sorts themes by their name. - */ - protected static function systemSortThemes($a, $b) { - if ($a->is_default) { - return -1; - } - if ($b->is_default) { - return 1; - } - return strcasecmp($a->info['name'], $b->info['name']); - } }