Consistently get the self URL.

This ensures all uses of the self URL get the same normalized/sanitized value.
This commit is contained in:
wn_
2022-11-28 17:40:42 +00:00
parent 94c49399cc
commit a355221e7f
6 changed files with 9 additions and 9 deletions

View File

@@ -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);