summaryrefslogtreecommitdiff
path: root/modules/comment
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment')
-rw-r--r--modules/comment/views/admin_block_recent_comments.html.php2
-rw-r--r--modules/comment/views/admin_comments.html.php4
-rw-r--r--modules/comment/views/comment.html.php5
3 files changed, 6 insertions, 5 deletions
diff --git a/modules/comment/views/admin_block_recent_comments.html.php b/modules/comment/views/admin_block_recent_comments.html.php
index d5aab84c..8b9634c5 100644
--- a/modules/comment/views/admin_block_recent_comments.html.php
+++ b/modules/comment/views/admin_block_recent_comments.html.php
@@ -7,7 +7,7 @@
alt="<?= p::clean($comment->author_name()) ?>"
width="32"
height="32" />
- <?= date("Y-M-d H:i:s", $comment->created) ?>
+ <?= gallery::date_time($comment->created) ?>
<?= t("<a href=#>%author_name</a> said <em>%comment_text</em>",
array("author_name" => p::clean($comment->author_name()),
"comment_text" => text::limit_words(p::clean($comment->text), 50))); ?>
diff --git a/modules/comment/views/admin_comments.html.php b/modules/comment/views/admin_comments.html.php
index 79bdb1f3..e749fde0 100644
--- a/modules/comment/views/admin_comments.html.php
+++ b/modules/comment/views/admin_comments.html.php
@@ -117,7 +117,7 @@
</td>
<td>
<div class="right">
- <? $item = $comment->item(); ?>
+ <? $item = $comment->item() ?>
<div class="gItem gPhoto">
<a href="<?= $item->url() ?>">
<? if ($item->has_thumb()): ?>
@@ -131,7 +131,7 @@
</a>
</div>
</div>
- <p><?= date("Y-M-d", $comment->created); ?></p>
+ <p><?= gallery::date($comment->created) ?></p>
<?= p::clean($comment->text) ?>
</td>
<td>
diff --git a/modules/comment/views/comment.html.php b/modules/comment/views/comment.html.php
index 0337173b..ce52951b 100644
--- a/modules/comment/views/comment.html.php
+++ b/modules/comment/views/comment.html.php
@@ -8,8 +8,9 @@
width="40"
height="40" />
</a>
- <?= t("on ") . date("Y-M-d H:i:s", $comment->created) ?>
- <a href="#"><?= p::clean($comment->author_name()) ?></a> <?= t("said") ?>
+ <?= t("on %date_time, %author_name said",
+ array("date_time" => gallery::date_time($comment->created),
+ "author_name" => p::clean($comment->author_name()))) ?>
</p>
<div>
<?= p::clean($comment->text) ?>