diff --git a/e107_admin/plugin.php b/e107_admin/plugin.php index 670831f71..220d5ef81 100644 --- a/e107_admin/plugin.php +++ b/e107_admin/plugin.php @@ -1023,17 +1023,15 @@ class plugin_online_ui extends e_admin_ui function pluginCheck($force=false) { - global $plugin; - if(!PLUGIN_SCAN_INTERVAL) { - $plugin->update_plugins_table('update'); + e107::getPlugin()->update_plugins_table('update'); return; } if((time() > vartrue($_SESSION['nextPluginFolderScan'],0)) || $force == true) { - $plugin->update_plugins_table('update'); + e107::getPlugin()->update_plugins_table('update'); } $_SESSION['nextPluginFolderScan'] = time() + PLUGIN_SCAN_INTERVAL;