Skip to content
Snippets Groups Projects
Commit d728425b authored by Elmar Ludwig's avatar Elmar Ludwig Committed by Jan-Hendrik Willms
Browse files

avoid (potentially) creating plugin instances, re #268

parent 35aefa2d
No related branches found
No related tags found
No related merge requests found
...@@ -404,9 +404,9 @@ function object_id_to_type($id) ...@@ -404,9 +404,9 @@ function object_id_to_type($id)
]; ];
if (!in_array($id, [0, -1, -2])) { if (!in_array($id, [0, -1, -2])) {
$plugin = PluginManager::getInstance()->getPluginById($id); $plugin = PluginManager::getInstance()->getPluginInfoById($id);
if ($plugin) { if ($plugin) {
$search = get_class($plugin); $search = $plugin['class'];
} }
} else { } else {
$search = (int)$id; $search = (int)$id;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment