diff options
author | wn_ <[email protected]> | 2022-11-28 17:40:42 +0000 |
---|---|---|
committer | wn_ <[email protected]> | 2022-11-28 17:40:42 +0000 |
commit | a355221e7f650b151fe866174152d686c1c2d146 (patch) | |
tree | c72fb6a3261681ec854a61340338fc01b44fdfe0 /classes/rpc.php | |
parent | 94c49399cc10c1f7001e8c76db7575b70e1fc674 (diff) |
Consistently get the self URL.
This ensures all uses of the self URL get the same normalized/sanitized value.
Diffstat (limited to 'classes/rpc.php')
-rwxr-xr-x | classes/rpc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/rpc.php b/classes/rpc.php index a2250157a..204b002d5 100755 --- a/classes/rpc.php +++ b/classes/rpc.php @@ -451,7 +451,7 @@ class RPC extends Handler_Protected { $params["safe_mode"] = !empty($_SESSION["safe_mode"]); $params["check_for_updates"] = Config::get(Config::CHECK_FOR_UPDATES); - $params["icons_url"] = Config::get(Config::SELF_URL_PATH) . '/public.php'; + $params["icons_url"] = Config::get_self_url() . '/public.php'; $params["cookie_lifetime"] = Config::get(Config::SESSION_COOKIE_LIFETIME); $params["default_view_mode"] = get_pref(Prefs::_DEFAULT_VIEW_MODE); $params["default_view_limit"] = (int) get_pref(Prefs::_DEFAULT_VIEW_LIMIT); |