aboutsummaryrefslogtreecommitdiffstats
path: root/admin/languages_installed.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/languages_installed.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/admin/languages_installed.php b/admin/languages_installed.php
index 74023a34b..fb1ee0d27 100644
--- a/admin/languages_installed.php
+++ b/admin/languages_installed.php
@@ -66,7 +66,7 @@ foreach($languages->fs_languages as $language_id => $language_name)
{
$language['state'] = 'active';
$language['deactivable'] = true;
-
+
if (count($languages->db_languages) <= 1)
{
$language['deactivable'] = false;
@@ -83,7 +83,7 @@ foreach($languages->fs_languages as $language_id => $language_name)
{
$language['state'] = 'inactive';
}
-
+
if ($language_id == $default_language)
{
$language['is_default'] = true;
@@ -91,6 +91,7 @@ foreach($languages->fs_languages as $language_id => $language_name)
}
else
{
+ $language['is_default'] = false;
array_push($tpl_languages, $language);
}
}
@@ -127,4 +128,4 @@ DELETE
}
$template->assign_var_from_handle('ADMIN_CONTENT', 'languages');
-?> \ No newline at end of file
+?>