summaryrefslogtreecommitdiff
path: root/classes/pref
diff options
context:
space:
mode:
authorwn_ <[email protected]>2022-11-28 17:40:42 +0000
committerwn_ <[email protected]>2022-11-28 17:40:42 +0000
commita355221e7f650b151fe866174152d686c1c2d146 (patch)
treec72fb6a3261681ec854a61340338fc01b44fdfe0 /classes/pref
parent94c49399cc10c1f7001e8c76db7575b70e1fc674 (diff)
Consistently get the self URL.
This ensures all uses of the self URL get the same normalized/sanitized value.
Diffstat (limited to 'classes/pref')
-rw-r--r--classes/pref/prefs.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php
index 0c1b90213..1e02a0508 100644
--- a/classes/pref/prefs.php
+++ b/classes/pref/prefs.php
@@ -251,7 +251,7 @@ class Pref_Prefs extends Handler_Protected {
$tpl->setVariable('LOGIN', $user->login);
$tpl->setVariable('NEWMAIL', $new_email);
- $tpl->setVariable('TTRSS_HOST', Config::get(Config::SELF_URL_PATH));
+ $tpl->setVariable('TTRSS_HOST', Config::get_self_url());
$tpl->addBlock('message');
@@ -1002,7 +1002,7 @@ class Pref_Prefs extends Handler_Protected {
$tpl->readTemplateFromFile("otp_disabled_template.txt");
$tpl->setVariable('LOGIN', $row["login"]);
- $tpl->setVariable('TTRSS_HOST', Config::get(Config::SELF_URL_PATH));
+ $tpl->setVariable('TTRSS_HOST', Config::get_self_url());
$tpl->addBlock('message');