summaryrefslogtreecommitdiff
path: root/classes/handler
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-25 14:49:58 +0300
committerAndrew Dolgov <[email protected]>2021-02-25 14:49:58 +0300
commitc96172fa044d847fee237d966a6e75f8be5afa4d (patch)
treecdd79fdea548ab41b642fca12be7634ad8d25d2d /classes/handler
parent5aa05c90e1b979a2dd8985c10a541243e9415c39 (diff)
use constants in get_pref()/set_pref()
Diffstat (limited to 'classes/handler')
-rwxr-xr-xclasses/handler/public.php4
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);