diff options
author | Andrew Dolgov <[email protected]> | 2021-02-25 14:49:58 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-25 14:49:58 +0300 |
commit | c96172fa044d847fee237d966a6e75f8be5afa4d (patch) | |
tree | cdd79fdea548ab41b642fca12be7634ad8d25d2d /classes/handler/public.php | |
parent | 5aa05c90e1b979a2dd8985c10a541243e9415c39 (diff) |
use constants in get_pref()/set_pref()
Diffstat (limited to 'classes/handler/public.php')
-rwxr-xr-x | classes/handler/public.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php index 58e467a4f..cc5d35079 100755 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -40,7 +40,7 @@ class Handler_Public extends Handler { if (!$is_cat && is_numeric($feed) && $feed < PLUGIN_FEED_BASE_INDEX && $feed > LABEL_BASE_INDEX) { - $user_plugins = get_pref("_ENABLED_PLUGINS", $owner_uid); + $user_plugins = get_pref(Prefs::_ENABLED_PLUGINS, $owner_uid); $tmppluginhost = new PluginHost(); $tmppluginhost->load(Config::get(Config::PLUGINS), PluginHost::KIND_ALL); @@ -366,7 +366,7 @@ class Handler_Public extends Handler { $_POST["password"] = ""; if (get_schema_version() >= 120) { - $_SESSION["language"] = get_pref("USER_LANGUAGE", $_SESSION["uid"]); + $_SESSION["language"] = get_pref(Prefs::USER_LANGUAGE, $_SESSION["uid"]); } $_SESSION["ref_schema_version"] = get_schema_version(true); |