diff options
| author | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2026-03-02 17:41:50 +0100 |
|---|---|---|
| committer | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2026-03-02 17:41:50 +0100 |
| commit | 9500f0acd34f6169066f7cc975ff286d5a4739c0 (patch) | |
| tree | 33c4bae6145630526f5089c7d46409add2c4b16b /lib/plugins/engine/PluginManager.php | |
| parent | f7198ce453deae678c921b8e45c5ee7e00d6e8ee (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); |
