diff options
| author | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2026-03-02 17:41:50 +0100 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2026-03-03 09:07:31 +0100 |
| commit | da22e56bcfa6cba754f603358180e2bfa9eadfe8 (patch) | |
| tree | 05d229e4ff63917bc679f2cb3c2d688468dee000 /lib/plugins/engine/PluginManager.php | |
| parent | 7c5e5c9a6344e347b778d055da57f176788a66f5 (diff) | |
avoid batch loading of plugins by type, fixes #6260
Closes #6260
Merge request studip/studip!4740
Diffstat (limited to 'lib/plugins/engine/PluginManager.php')
| -rw-r--r-- | lib/plugins/engine/PluginManager.php | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/plugins/engine/PluginManager.php b/lib/plugins/engine/PluginManager.php index 4bcb96b..c66949a 100644 --- a/lib/plugins/engine/PluginManager.php +++ b/lib/plugins/engine/PluginManager.php @@ -51,22 +51,6 @@ class PluginManager } /** - * Comparison function used to order plugins by position. - */ - private static function positionCompare (array $plugin1, array $plugin2): int - { - if ($plugin1['core'] && !$plugin2['core']) { - return -1; - } - - if (!$plugin1['core'] && $plugin2['core']) { - return 1; - } - - return $plugin1['position'] - $plugin2['position']; - } - - /** * Read meta data for all plugins registered in the data base. */ private function readPluginInfos () @@ -662,8 +646,6 @@ class PluginManager $plugin_info = $this->getPluginInfos($type); $plugins = []; - usort($plugin_info, [self::class, 'positionCompare']); - foreach ($plugin_info as $info) { $activated = $context == null || $this->isPluginActivated($info['id'], $context); |
