summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-15 21:54:16 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-15 21:54:16 +0000
commit2d463c5531004b868ba12a577d6ea1b47d7b4b73 (patch)
treec2a78e757ceba6e118e6885ad86fe525a28b1736
parent6fd71945447468c46cc5837f184f07ec0fd4178c (diff)
use text::alternate where appropriate
-rw-r--r--modules/comment/views/comment_list.html.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/views/comment_list.html.php b/modules/comment/views/comment_list.html.php
index 81c5691e..16371541 100644
--- a/modules/comment/views/comment_list.html.php
+++ b/modules/comment/views/comment_list.html.php
@@ -1,6 +1,6 @@
<? defined("SYSPATH") or die("No direct script access."); ?>
<? foreach (array_reverse($comments) as $index => $comment): ?>
-<li id="gComment-<?= $index; ?>" class="gComment <?= $index % 2 ? 'gOdd' : 'gEven' ?>">
+<li id="gComment-<?= $index; ?>" class="gComment <?= text::alternate("gEven", "gOdd") ?>">
<p>
<a href="#" class="gAuthor"><?= $comment->author ?></a>
<?= comment::format_elapsed_time($comment->datetime) ?>,