1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Merge pull request #3286 from SimSync/plugin_update_files

Added buildAddonPrefLists() to plugin install, update and uninstall
This commit is contained in:
Cameron
2018-07-15 12:21:49 -07:00
committed by GitHub

View File

@@ -365,6 +365,9 @@ class plugin_ui extends e_admin_ui
// $log->log_event('PLUGMAN_01', $name, E_LOG_INFORMATIVE, ''); // $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); e107::getMessage()->add($text, E_MESSAGE_SUCCESS);
} }
@@ -422,6 +425,9 @@ class plugin_ui extends e_admin_ui
$text = e107::getPlugin()->uninstall($id, $post); $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); e107::getMessage()->add($text, E_MESSAGE_SUCCESS);
$log = e107::getPlugin()->getLog(); $log = e107::getPlugin()->getLog();
e107::getDebug()->log($log); e107::getDebug()->log($log);
@@ -446,7 +452,7 @@ class plugin_ui extends e_admin_ui
e107::getMessage()->addSuccess("Repair Complete (".$id.")"); // Repair Complete ([x]) 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); $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'); $this->redirectAction('list');
} }