summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-08-29 11:48:49 -0700
committerBharat Mediratta <bharat@menalto.com>2009-08-29 11:48:49 -0700
commitd85a8b20bbe0a5be0a03da70354169d41f418d41 (patch)
tree144e589c58a8afc3d284f13473c46d14d61320a3 /modules
parent38b2efc44cf3345d97798e9637db241b05e2dded (diff)
Rename $comment_model to $comments.
Diffstat (limited to 'modules')
-rw-r--r--modules/comment/helpers/comment_rss.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/comment/helpers/comment_rss.php b/modules/comment/helpers/comment_rss.php
index a8171ce7..e233de59 100644
--- a/modules/comment/helpers/comment_rss.php
+++ b/modules/comment/helpers/comment_rss.php
@@ -33,16 +33,16 @@ class comment_rss_Core {
return;
}
- $comment_model = ORM::factory("comment")
+ $comments = ORM::factory("comment")
->viewable()
->where("state", "published")
->orderby("created", "DESC");
if ($feed_id == "item") {
- $comment_model->where("item_id", $id);
+ $comments->where("item_id", $id);
}
- $comments = $comment_model->find_all($limit, $offset);
+ $comments = $comments->find_all($limit, $offset);
$feed->view = "comment.mrss";
$feed->children = array();
foreach ($comments as $comment) {
@@ -59,7 +59,7 @@ class comment_rss_Core {
ArrayObject::ARRAY_AS_PROPS);
}
- $feed->max_pages = ceil($comment_model->count_all() / $limit);
+ $feed->max_pages = ceil($comments->count_all() / $limit);
$feed->title = htmlspecialchars(t("Recent Comments"));
$feed->uri = url::abs_site("albums/" . (empty($id) ? "1" : $id));
$feed->description = t("Recent Comments");