summaryrefslogtreecommitdiff
path: root/modules/gallery/views/admin_advanced_settings.html.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-11-15 19:34:44 -0800
committerBharat Mediratta <bharat@menalto.com>2009-11-15 19:34:44 -0800
commite0f4e6500de0b5f0e9de973eadcd879c45da8e18 (patch)
tree4029f3c1abe18fd6dbc097e2ee1f7a562fbe4625 /modules/gallery/views/admin_advanced_settings.html.php
parent64ef86a8ee0c054bdc8743beaa1eca3bbb46a676 (diff)
Use text::alternate() instead of hand-rolled even/odd code.
Diffstat (limited to 'modules/gallery/views/admin_advanced_settings.html.php')
-rw-r--r--modules/gallery/views/admin_advanced_settings.html.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/gallery/views/admin_advanced_settings.html.php b/modules/gallery/views/admin_advanced_settings.html.php
index 32fbc2c3..ff4843ab 100644
--- a/modules/gallery/views/admin_advanced_settings.html.php
+++ b/modules/gallery/views/admin_advanced_settings.html.php
@@ -16,10 +16,9 @@
<th> <?= t("Name") ?> </th>
<th> <?= t("Value") ?></th>
</tr>
- <? $i = 0; ?>
<? foreach ($vars as $var): ?>
<? if ($var->module_name == "gallery" && $var->name == "_cache") continue ?>
- <tr class="<?= ($i % 2 == 0) ? "g-odd" : "g-even" ?>">
+ <tr class="<?= text::alternate("g-odd", "g-even") ?>">
<td> <?= $var->module_name ?> </td>
<td> <?= html::clean($var->name) ?> </td>
<td>
@@ -34,7 +33,6 @@
</a>
</td>
</tr>
- <? $i++ ?>
<? endforeach ?>
</table>
</div>