diff options
author | Chad Kieffer <ckieffer@gmail.com> | 2009-09-01 23:22:44 -0600 |
---|---|---|
committer | Chad Kieffer <ckieffer@gmail.com> | 2009-09-01 23:22:44 -0600 |
commit | adc7f39f7d1b3cedb0a353b3048e95479df553b0 (patch) | |
tree | 503e18f2525b64aa7934005c812ec8427c979a3d /modules/comment | |
parent | bc147d1c6c95c1ba1394f0198d9e5b810071a4ac (diff) | |
parent | d26f9147a000ed907695b5fa593ee9c1d9b3354d (diff) |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/comment')
-rw-r--r-- | modules/comment/helpers/comment_rss.php | 3 | ||||
-rw-r--r-- | modules/comment/views/comments.html.php | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/modules/comment/helpers/comment_rss.php b/modules/comment/helpers/comment_rss.php index b539887b..4424981d 100644 --- a/modules/comment/helpers/comment_rss.php +++ b/modules/comment/helpers/comment_rss.php @@ -42,10 +42,9 @@ class comment_rss_Core { $comments->where("item_id", $id); } - $comments = $comments->find_all($limit, $offset); $feed->view = "comment.mrss"; $feed->children = array(); - foreach ($comments as $comment) { + foreach ($comments->find_all($limit, $offset) as $comment) { $item = $comment->item(); $feed->children[] = new ArrayObject( array("pub_date" => date("D, d M Y H:i:s T", $comment->created), diff --git a/modules/comment/views/comments.html.php b/modules/comment/views/comments.html.php index b7ebdf3a..7eb34c20 100644 --- a/modules/comment/views/comments.html.php +++ b/modules/comment/views/comments.html.php @@ -8,7 +8,7 @@ <? if (!$comments->count()): ?> <p id="gNoCommentsYet"> <?= t("No comments yet. Be the first to <a %attrs>comment</a>!", - array("attrs" => "href=\"#add_comment_form\" class=\"showCommentForm\"")) ?> + array("attrs" => html::mark_clean("href=\"#add_comment_form\" class=\"showCommentForm\""))) ?> </p> <? endif ?> <ul> |