diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-02-26 09:58:57 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-02-26 09:58:57 -0800 |
commit | f28b80fcf43e02ca65f419eb6774321dc30a2a37 (patch) | |
tree | 34d3e44e5716751f71d10de623228bd541b487ae /modules/gallery/views | |
parent | 9f810150532a2511bfc5f03c9d24fd592d2f803f (diff) | |
parent | b4922f4d176662976c9d2b249edf0e50a0cdfdf1 (diff) |
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/gallery/views')
-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> |