diff options
author | Andy Staudacher <andy.st@gmail.com> | 2010-02-24 16:39:18 -0800 |
---|---|---|
committer | Andy Staudacher <andy.st@gmail.com> | 2010-02-24 16:39:18 -0800 |
commit | 39b8810c3b37538e015c9d8cb7b46c59d87fb8c7 (patch) | |
tree | 2a86da71f2417485985a6b386d2c4c9849ea364e /modules/gallery/views/admin_languages.html.php | |
parent | c38bee203b8e89cfb1446ecacd133f3c679ffbcc (diff) |
Fix multi-column layout of language admin.
Diffstat (limited to 'modules/gallery/views/admin_languages.html.php')
-rw-r--r-- | modules/gallery/views/admin_languages.html.php | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/modules/gallery/views/admin_languages.html.php b/modules/gallery/views/admin_languages.html.php index 07134475..d4b7b0c1 100644 --- a/modules/gallery/views/admin_languages.html.php +++ b/modules/gallery/views/admin_languages.html.php @@ -49,13 +49,14 @@ </tr> <? $i = 0 ?> <? foreach ($available_locales as $code => $display_name): ?> - <? if ($i == (count($available_locales)/2)): ?> - <table> - <tr> - <th> <?= t("Installed") ?> </th> - <th> <?= t("Language") ?> </th> - <th> <?= t("Default language") ?> </th> - </tr> + <? if ($i == (int) (count($available_locales)/2)): ?> + </table> + <table> + <tr> + <th> <?= t("Installed") ?> </th> + <th> <?= t("Language") ?> </th> + <th> <?= t("Default language") ?> </th> + </tr> <? endif ?> <tr class="<?= (isset($installed_locales[$code])) ? "g-available" : "" ?><?= ($default_locale == $code) ? " g-selected" : "" ?>"> <td> <?= form::checkbox("installed_locales[]", $code, isset($installed_locales[$code])) ?> </td> |