diff options
author | grum <grum@piwigo.org> | 2010-04-04 18:45:58 +0000 |
---|---|---|
committer | grum <grum@piwigo.org> | 2010-04-04 18:45:58 +0000 |
commit | d2aa8a3407f357fe255746fd7849f0b49c101186 (patch) | |
tree | a365e7365e112e04cb85d93ecfb62713f30741d9 /admin/languages_installed.php | |
parent | d30c4a66ff42b2fb63b73e4c9c05b95e587b4e4e (diff) |
initialize the 'is_default' key to false when the item (theme, language) is not the default item
git-svn-id: http://piwigo.org/svn/trunk@5642 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/languages_installed.php')
-rw-r--r-- | admin/languages_installed.php | 7 |
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 +?> |