mirror of
https://github.com/e107inc/e107.git
synced 2025-08-10 16:46:50 +02:00
Fixes #3711 - check local themes/plugins against author names as well as versions before suggesting updates.
This commit is contained in:
@@ -572,6 +572,7 @@ class plugin_ui extends e_admin_ui
|
||||
if(file_exists($_path.'plugin.xml'))
|
||||
{
|
||||
$plugin->install_plugin_xml($id, 'upgrade');
|
||||
$text = LAN_UPGRADE_SUCCESSFUL;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -656,13 +657,17 @@ class plugin_ui extends e_admin_ui
|
||||
e107::getConfig('core')->save();
|
||||
}
|
||||
|
||||
|
||||
$mes->addSuccess($text);
|
||||
//$plugin->save_addon_prefs('update');
|
||||
|
||||
// make sure ALL plugin/addon pref lists get update and are current
|
||||
e107::getPlug()->clearCache()->buildAddonPrefLists();
|
||||
|
||||
// clear infopanel in admin dashboard.
|
||||
e107::getCache()->clear('Infopanel_plugin', true);
|
||||
e107::getSession()->clear('addons-update-status');
|
||||
e107::getSession()->set('addons-update-checked',false); // set to recheck it.
|
||||
|
||||
$this->redirectAction('list');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user