1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Download/Install modal fix.

This commit is contained in:
Cameron 2017-02-12 10:07:13 -08:00
parent 096b34fec1
commit 2bc62496e2

View File

@ -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;