From 15e1a5ba5140c723c7033b4a7f03daf6147ee003 Mon Sep 17 00:00:00 2001 From: Achim Ennenbach Date: Sun, 15 Jul 2018 15:35:31 +0200 Subject: [PATCH] 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. --- e107_admin/plugin.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/e107_admin/plugin.php b/e107_admin/plugin.php index 38416524d..86e2c4c29 100755 --- a/e107_admin/plugin.php +++ b/e107_admin/plugin.php @@ -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'); }