diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-11-29 08:08:37 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-11-29 08:08:37 +0000 |
| commit | 520fbf4f963092cb1abec96f6e2ade84f3837220 (patch) | |
| tree | e6b683e97227a459ae5e76c44a328b5bd341f18c /app/controllers/admin/plugin.php | |
| parent | c20978de1363bf9fbada4afa93319f76680090aa (diff) | |
make table of unregistered plugins sortable, fixes #4927
Closes #4927
Merge request studip/studip!3698
Diffstat (limited to 'app/controllers/admin/plugin.php')
| -rw-r--r-- | app/controllers/admin/plugin.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/admin/plugin.php b/app/controllers/admin/plugin.php index 37b08cc..bc073a8 100644 --- a/app/controllers/admin/plugin.php +++ b/app/controllers/admin/plugin.php @@ -509,7 +509,11 @@ class Admin_PluginController extends AuthenticatedController public function unregistered_action() { - $this->unknown_plugins = $this->plugin_admin->scanPluginDirectory(); + $plugins = $this->plugin_admin->scanPluginDirectory(); + usort($plugins, function ($a, $b) { + return $a['pluginname'] <=> $b['pluginname']; + }); + $this->unknown_plugins = $plugins; } /** |
