From 67e0cf9a371fca46405e7df26ccc970ce6b408cc Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 29 May 2013 15:41:19 +0400 Subject: add startup_gettext() calls to several endpoints for unregistered users so the output would be translated based on accept-language header --- classes/handler/public.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'classes/handler/public.php') 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 "Tiny Tiny RSS"; @@ -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(); -- cgit v1.2.3