From 74e821b03ef149a43eb8704fd2350985699d3ded Mon Sep 17 00:00:00 2001
From: Bharat Mediratta
Date: Sun, 20 Jun 2010 17:21:25 -0700
Subject: Rename the feed variable from "children" to "comments" since that
makes more semantic sense.
---
modules/comment/helpers/comment_rss.php | 4 ++--
modules/comment/views/comment.mrss.php | 18 +++++++++---------
2 files changed, 11 insertions(+), 11 deletions(-)
(limited to 'modules/comment')
diff --git a/modules/comment/helpers/comment_rss.php b/modules/comment/helpers/comment_rss.php
index 545192e5..26d98d21 100644
--- a/modules/comment/helpers/comment_rss.php
+++ b/modules/comment/helpers/comment_rss.php
@@ -47,10 +47,10 @@ class comment_rss_Core {
$feed = new stdClass();
$feed->view = "comment.mrss";
- $feed->children = array();
+ $feed->comments = array();
foreach ($comments->find_all($limit, $offset) as $comment) {
$item = $comment->item();
- $feed->children[] = new ArrayObject(
+ $feed->comments[] = new ArrayObject(
array("pub_date" => date("D, d M Y H:i:s T", $comment->created),
"text" => nl2br(html::purify($comment->text)),
"thumb_url" => $item->thumb_url(),
diff --git a/modules/comment/views/comment.mrss.php b/modules/comment/views/comment.mrss.php
index c2a4b538..809e7890 100644
--- a/modules/comment/views/comment.mrss.php
+++ b/modules/comment/views/comment.mrss.php
@@ -20,19 +20,19 @@
endif ?>
= $pub_date ?>
= $pub_date ?>
- foreach ($feed->children as $child): ?>
+ foreach ($feed->comments as $comment): ?>
-
- = html::purify($child->title) ?>
- = html::clean($child->item_uri) ?>
- = html::clean($child->author) ?>
- = $child->item_uri ?>
- = $child->pub_date ?>
+ = html::purify($comment->title) ?>
+ = html::clean($comment->item_uri) ?>
+ = html::clean($comment->author) ?>
+ = $comment->item_uri ?>
+ = $comment->pub_date ?>
= nl2br(html::purify($child->text)) ?>
+ = nl2br(html::purify($comment->text)) ?>
-
+
]]>
--
cgit v1.2.3