aboutsummaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-12-16 07:35:56 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-12-16 07:35:56 +0000
commit1cd587fa0413bdbae1fc3bdca10ccc2a1fee7c07 (patch)
tree14bafcf0798157baab784b59d22190554e804c18 /public
parent52e6b5643310ba1f8b2f1f26ac4f2e03d39b476d (diff)
fix coding style and some bugs, re #1552
Merge request studip/studip!3764
Diffstat (limited to 'public')
-rw-r--r--public/plugins.php9
1 files changed, 0 insertions, 9 deletions
diff --git a/public/plugins.php b/public/plugins.php
index 176ccfa..0edb995 100644
--- a/public/plugins.php
+++ b/public/plugins.php
@@ -40,10 +40,6 @@ $plugin_dispatch = function (ServerRequestInterface $request, RequestHandlerInte
return $response->withHeader('Location', URLHelper::getURL('dispatch.php/course/forum/' . $unconsumed));
}
- // retrieve corresponding plugin info
- $plugin_manager = PluginManager::getInstance();
- $plugin_info = $plugin_manager->getPluginInfo($plugin_class);
-
// create an instance of the queried plugin
$plugin = PluginEngine::getPlugin($plugin_class);
@@ -56,11 +52,6 @@ $plugin_dispatch = function (ServerRequestInterface $request, RequestHandlerInte
// set default page title
PageLayout::setTitle($plugin->getPluginName());
- // deprecated, the plugin should override perform() instead
- if (is_callable([$plugin, 'initialize'])) {
- $plugin->initialize();
- }
-
$route_callable = $plugin->getRouteCallable($unconsumed);
$app->any(Request::pathInfo(), $route_callable);
} catch (AccessDeniedException $ade) {