1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-21 21:21:54 +02:00

Fix for Plugin Manager addon prefs.

This commit is contained in:
Cameron 2017-02-07 08:57:18 -08:00
parent c1930ab654
commit cc8886acc0
2 changed files with 6 additions and 2 deletions

@ -221,7 +221,7 @@ class e107Update
function updatePlugin($path)
{
e107::getPlugin()->install_plugin_xml($path, 'upgrade');
e107::getPlugin()->save_addon_prefs(); // Rebuild addon prefs.
// e107::getPlugin()->save_addon_prefs(); // Rebuild addon prefs.
e107::getMessage()->reset(E_MESSAGE_INFO);
e107::getMessage()->addSuccess(LAN_UPDATED." : ".$path);

@ -2308,6 +2308,8 @@ class e107plugin
e107::getConfig('core')->save(true, false, false);
$this->save_addon_prefs('update');
/* if($function == 'install')
{
if(isset($plug_vars['management']['installDone'][0]))
@ -3859,7 +3861,7 @@ class e107plugin
*/
function save_addon_prefs($mode = 'upgrade')
{
e107::getMessage()->addDebug('Running save_addon_prefs('.$mode.')');
$this->log('Running save_addon_prefs('.$mode.')');
$sql = e107::getDb();
$core = e107::getConfig('core');
@ -4101,6 +4103,8 @@ class e107plugin
echo $plugin_path." = ".implode(",", $p_addons)."<br />";
}
$this->log("Detected Addons: ".print_a($p_addons,true));
return implode(",", $p_addons);
}