aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_html.inc.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-09-20 20:08:15 +0000
committerz0rglub <z0rglub@piwigo.org>2004-09-20 20:08:15 +0000
commit9d0ffba6377a0a011d773ad03cff08d9c5cc0268 (patch)
tree66c4556e859c749fe24b5243a91536a13f5b3fac /include/functions_html.inc.php
parent288818b06d7d7e2a9030722114e30a9fad32c736 (diff)
- huge refactoring of admin/configuration.php (reminder : tabs in code are
forbidden, only blank spaces are allowed) - in admin panel, remote site management is in "general" section and not in "configuration" section - when retrieving languages, the array keys must be the language code and not its display name (because 2 language codes might have the same display name) git-svn-id: http://piwigo.org/svn/trunk@528 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_html.inc.php')
-rw-r--r--include/functions_html.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php
index 4c68aa019..103bac3f0 100644
--- a/include/functions_html.inc.php
+++ b/include/functions_html.inc.php
@@ -116,7 +116,7 @@ function language_select($default, $select_name = "language")
$available_lang = get_languages();
$lang_select = '<select name="' . $select_name . '" onchange="this.form.submit()">';
- foreach ($available_lang as $displayname => $code)
+ foreach ($available_lang as $code => $displayname)
{
$selected = ( strtolower($default) == strtolower($code) ) ? ' selected="selected"' : '';
$lang_select .= '<option value="' . $code . '"' . $selected . '>' . ucwords($displayname) . '</option>';