mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-19 19:09:13 -04:00
Revert "Rename $comment_model to $comments."
This reverts commit d85a8b20bb.
This commit is contained in:
@@ -33,16 +33,16 @@ class comment_rss_Core {
|
||||
return;
|
||||
}
|
||||
|
||||
$comments = ORM::factory("comment")
|
||||
$comment_model = ORM::factory("comment")
|
||||
->viewable()
|
||||
->where("state", "published")
|
||||
->orderby("created", "DESC");
|
||||
|
||||
if ($feed_id == "item") {
|
||||
$comments->where("item_id", $id);
|
||||
$comment_model->where("item_id", $id);
|
||||
}
|
||||
|
||||
$comments = $comments->find_all($limit, $offset);
|
||||
$comments = $comment_model->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($comments->count_all() / $limit);
|
||||
$feed->max_pages = ceil($comment_model->count_all() / $limit);
|
||||
$feed->title = htmlspecialchars(t("Recent Comments"));
|
||||
$feed->uri = url::abs_site("albums/" . (empty($id) ? "1" : $id));
|
||||
$feed->description = t("Recent Comments");
|
||||
|
||||
Reference in New Issue
Block a user