summaryrefslogtreecommitdiff
path: root/modules/gallery/views
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2010-02-24 16:39:18 -0800
committerAndy Staudacher <andy.st@gmail.com>2010-02-24 16:39:18 -0800
commit39b8810c3b37538e015c9d8cb7b46c59d87fb8c7 (patch)
tree2a86da71f2417485985a6b386d2c4c9849ea364e /modules/gallery/views
parentc38bee203b8e89cfb1446ecacd133f3c679ffbcc (diff)
Fix multi-column layout of language admin.
Diffstat (limited to 'modules/gallery/views')
-rw-r--r--modules/gallery/views/admin_languages.html.php15
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>