]> git.wh0rd.org Git - tt-rss.git/commitdiff
add startup_gettext() calls to several endpoints for unregistered users so the output...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 29 May 2013 11:41:19 +0000 (15:41 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 29 May 2013 11:41:19 +0000 (15:41 +0400)
classes/handler/public.php
include/login_form.php
register.php

index 3e868d56e8e111d475527f9ae23828ab7d9b4ef7..727976a82ed73125cdfe13380de3f2fa6014be3a 100644 (file)
@@ -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();
index b401fdac05142a3fea1cda7d42b2db7bff8b52a5..891e25e13a24b914d3ac1d90e6f753eabe9da1e8 100644 (file)
@@ -1,3 +1,4 @@
+<?php startup_gettext(); ?>
 <html>
 <head>
        <title>Tiny Tiny RSS : Login</title>
@@ -108,14 +109,14 @@ function init() {
        require(['dojo/parser','dijit/form/Button','dijit/form/CheckBox','dijit/form/Form',
        'dijit/form/Select','dijit/form/TextBox','dijit/form/ValidationTextBox'],function(parser){
                parser.parse();
-               //show tooltip node only after this widget is instaniated. 
+               //show tooltip node only after this widget is instaniated.
                dojo.query('div[dojoType="dijit.Tooltip"]').style({
                        display:''
                });
                fetchProfiles();
                dijit.byId("bw_limit").attr("checked", getCookie("ttrss_bwlimit") == 'true');
                document.forms.loginForm.login.focus();
-       });     
+       });
 
 }
 
index f50ef14a4013702fe4733a2508b0196dc010872f..eaab98e04ea2fb00000b628863e4399a288d98bc 100644 (file)
@@ -15,6 +15,8 @@
        require_once "config.php";
        require_once "db.php";
 
+       startup_gettext();
+
        $action = $_REQUEST["action"];
 
        if (!init_plugins()) return;