diff options
author | Andrew Dolgov <[email protected]> | 2013-05-29 15:41:19 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-05-29 15:41:19 +0400 |
commit | 67e0cf9a371fca46405e7df26ccc970ce6b408cc (patch) | |
tree | 21f4b934f4635509352f38fa5ef29c87888d37df /classes/handler/public.php | |
parent | 642432fc39956e92b599f204d64e0b365f36edf2 (diff) |
add startup_gettext() calls to several endpoints for unregistered users so the output would be translated based on accept-language header
Diffstat (limited to 'classes/handler/public.php')
-rw-r--r-- | classes/handler/public.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php index 3e868d56e..727976a82 100644 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -732,6 +732,8 @@ class Handler_Public extends Handler { } function forgotpass() { + startup_gettext(); + header('Content-Type: text/html; charset=utf-8'); print "<html><head><title>Tiny Tiny RSS</title>"; @@ -825,6 +827,8 @@ class Handler_Public extends Handler { } function dbupdate() { + startup_gettext(); + if (!SINGLE_USER_MODE && $_SESSION["access_level"] < 10) { $_SESSION["login_error_msg"] = __("Your access level is insufficient to run this script."); render_login_form(); |