aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/functions.inc.php2
-rw-r--r--include/functions_html.inc.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 1e4cc44c7..1bd3abd07 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -277,7 +277,7 @@ function get_languages()
if (is_dir($path) and !is_link($path) and file_exists($path.'/iso.txt'))
{
list($language_name) = @file($path.'/iso.txt');
- $languages[$language_name] = $file;
+ $languages[$file] = $language_name;
}
}
closedir($dir);
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>';