mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 10:45:56 +00:00
make pluginhost a singleton
This commit is contained in:
@@ -5,9 +5,7 @@ class PluginHandler extends Handler_Protected {
|
||||
}
|
||||
|
||||
function catchall($method) {
|
||||
global $pluginhost;
|
||||
|
||||
$plugin = $pluginhost->get_plugin($_REQUEST["plugin"]);
|
||||
$plugin = PluginHost::getInstance()->get_plugin($_REQUEST["plugin"]);
|
||||
|
||||
if ($plugin) {
|
||||
if (method_exists($plugin, $method)) {
|
||||
|
||||
Reference in New Issue
Block a user