1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 01:19:44 +01:00

Added e107::getPlug()->clearCache()->buildAddonPrefLists() to make sure

that the special e_*.php files that come with the plugins are always
uptodate and known by the system.
This commit is contained in:
Achim Ennenbach 2018-07-15 15:35:31 +02:00
parent a64b4fe5e7
commit 15e1a5ba51

View File

@ -365,6 +365,9 @@ class plugin_ui extends e_admin_ui
// $log->log_event('PLUGMAN_01', $name, E_LOG_INFORMATIVE, '');
// make sure ALL plugin/addon pref lists get update and are current
e107::getPlug()->clearCache()->buildAddonPrefLists();
e107::getMessage()->add($text, E_MESSAGE_SUCCESS);
}
@ -422,6 +425,9 @@ class plugin_ui extends e_admin_ui
$text = e107::getPlugin()->uninstall($id, $post);
// make sure ALL plugin/addon pref lists get update and are current
e107::getPlug()->clearCache()->buildAddonPrefLists();
e107::getMessage()->add($text, E_MESSAGE_SUCCESS);
$log = e107::getPlugin()->getLog();
e107::getDebug()->log($log);
@ -446,7 +452,7 @@ class plugin_ui extends e_admin_ui
e107::getMessage()->addSuccess("Repair Complete (".$id.")"); // Repair Complete ([x])
$this->redirectAction('list');
$this->redirectAction('list');
}
@ -641,7 +647,10 @@ class plugin_ui extends e_admin_ui
$mes->addSuccess($text);
$plugin->save_addon_prefs('update');
//$plugin->save_addon_prefs('update');
// make sure ALL plugin/addon pref lists get update and are current
e107::getPlug()->clearCache()->buildAddonPrefLists();
$this->redirectAction('list');
}