Skip to content
Snippets Groups Projects
Commit 52d65429 authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

avoid (potentially) creating plugin instances, re #268

parent e2f1b8b1
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.
Finish editing this message first!
Please register or to comment