Skip to content

Commit

Permalink
[jan] Only show languages on login page that are supported by the sys…
Browse files Browse the repository at this point in the history
…tem (Request #10457).
  • Loading branch information
yunosh committed Jan 18, 2016
1 parent 629dad1 commit 1f590b2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 2 additions & 0 deletions horde/docs/CHANGES
Expand Up @@ -2,6 +2,8 @@
v5.3.0-git
----------

[jan] Only show languages on login page that are supported by the system
(Request #10457).
[jan] Add option to always lowercase user names after logging in.
[jan] Add group caching.
[mjr] Add configuration options for overriding maximum request window size for
Expand Down
14 changes: 8 additions & 6 deletions horde/login.php
Expand Up @@ -279,12 +279,14 @@ function _addAnchor($url, $type, $vars, $url_anchor = null)
if (!$is_auth && !$prefs->isLocked('language')) {
$langs = array();
foreach ($registry->nlsconfig->languages as $key => $val) {
$langs[] = array(
'sel' => ($key == $GLOBALS['language']),
'val' => $key,
// Language names are already encoded.
'name' => $val
);
if ($registry->nlsconfig->validLang($key)) {
$langs[] = array(
'sel' => ($key == $GLOBALS['language']),
'val' => $key,
// Language names are already encoded.
'name' => $val
);
}
}
}

Expand Down
2 changes: 2 additions & 0 deletions horde/package.xml
Expand Up @@ -39,6 +39,7 @@
</stability>
<license uri="http://www.horde.org/licenses/lgpl">LGPL-2</license>
<notes>
* [jan] Only show languages on login page that are supported by the system (Request #10457).
* [jan] Add option to always lowercase user names after logging in.
* [jan] Add group caching.
* [mjr] Add configuration options for overriding maximum request window size for ActiveSync.
Expand Down Expand Up @@ -4189,6 +4190,7 @@
<date>2015-09-27</date>
<license uri="http://www.horde.org/licenses/lgpl">LGPL-2</license>
<notes>
* [jan] Only show languages on login page that are supported by the system (Request #10457).
* [jan] Add option to always lowercase user names after logging in.
* [jan] Add group caching.
* [mjr] Add configuration options for overriding maximum request window size for ActiveSync.
Expand Down

0 comments on commit 1f590b2

Please sign in to comment.