diff options
author | Andrew Dolgov <[email protected]> | 2018-12-26 22:04:35 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-12-26 22:04:35 +0300 |
commit | 734af3357d37b1424935f8589f144b04f9c61323 (patch) | |
tree | e6518a2fae85068921ca571fa4e55424e883d136 /classes/pref | |
parent | 55ef85adc01474f502cf195d8fb35e2655ccd20a (diff) |
fix user plugins not saving properly in non-default profiles
Diffstat (limited to 'classes/pref')
-rw-r--r-- | classes/pref/prefs.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index 5388bd905..98bd99a04 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -735,7 +735,7 @@ class Pref_Prefs extends Handler_Protected { <td width='10%'>".__('Author')."</td></tr>"; $system_enabled = array_map("trim", explode(",", PLUGINS)); - $user_enabled = array_map("trim", explode(",", get_pref("_ENABLED_PLUGINS", $_SESSION['uid']))); + $user_enabled = array_map("trim", explode(",", get_pref("_ENABLED_PLUGINS"))); $tmppluginhost = new PluginHost(); $tmppluginhost->load_all($tmppluginhost::KIND_ALL, $_SESSION["uid"], true); @@ -973,7 +973,7 @@ class Pref_Prefs extends Handler_Protected { else $plugins = ""; - set_pref("_ENABLED_PLUGINS", $plugins, $_SESSION["uid"]); + set_pref("_ENABLED_PLUGINS", $plugins); } function clearplugindata() { |