From 26314d0ef85d4a1e73ca6c9bd728a4cfb8d46d6b Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 12 Jun 2009 22:44:51 -0700 Subject: Create gallery::date_time(), gallery::date() and gallery::time() functions that format a unix timestamp into a date+time/date/time string. Partial fix for ticket #347. --- modules/comment/views/admin_block_recent_comments.html.php | 2 +- modules/comment/views/admin_comments.html.php | 4 ++-- modules/comment/views/comment.html.php | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) (limited to 'modules/comment/views') 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="author_name()) ?>" width="32" height="32" /> - created) ?> + created) ?> %author_name said %comment_text", 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 @@
- item(); ?> + item() ?>
-

created); ?>

+

created) ?>

text) ?> 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" /> - created) ?> - author_name()) ?> + gallery::date_time($comment->created), + "author_name" => p::clean($comment->author_name()))) ?>

text) ?> -- cgit v1.2.3