diff options
Diffstat (limited to 'classes/handler')
-rw-r--r-- | classes/handler/public.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php index 0d9b04686..2b5169ca7 100644 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -478,14 +478,6 @@ class Handler_Public extends Handler { <tr><td align="right"><?php echo __("Password:") ?></td> <td align="right"><input type="password" name="password" value="<?php echo $_SESSION["fake_password"] ?>"></td></tr> - <tr><td align="right"><?php echo __("Language:") ?></td> - <td align="right"> - <?php - print_select_hash("language", $_COOKIE["ttrss_lang"], get_translations(), - "style='width : 100%''"); - - ?> - </td></tr> <tr><td colspan='2'> <button type="submit"> <?php echo __('Log in') ?></button> @@ -518,7 +510,7 @@ class Handler_Public extends Handler { if (authenticate_user($login, $password)) { $_POST["password"] = ""; - $_SESSION["language"] = $_POST["language"]; + $_SESSION["language"] = get_pref("USER_LANGUAGE", $_SESSION["uid"], false); $_SESSION["ref_schema_version"] = get_schema_version(true); $_SESSION["bw_limit"] = !!$_POST["bw_limit"]; |