summaryrefslogtreecommitdiff
path: root/modules/comment/helpers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-06-11 21:19:13 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-06-11 21:19:13 -0700
commitf369b8fabfdffe475464827d6225b2d4895aadb5 (patch)
treed0b9fb7622ab8b2fc5464ce9cb82674a3adeae75 /modules/comment/helpers
parent0b23433d947bb986db9b1d5775631306e23ed1f4 (diff)
parent4877f968b4d92c69e2fbecef6c6b1666b8af67f8 (diff)
Merge branch 'master' of git@github.com:talmdal/gallery3
Diffstat (limited to 'modules/comment/helpers')
-rw-r--r--modules/comment/helpers/comment_event.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/comment/helpers/comment_event.php b/modules/comment/helpers/comment_event.php
index a3beb27a..6370e27d 100644
--- a/modules/comment/helpers/comment_event.php
+++ b/modules/comment/helpers/comment_event.php
@@ -21,4 +21,10 @@ class comment_event_Core {
static function item_before_delete($item) {
Database::instance()->delete("comments", array("item_id" => $item->id));
}
+
+ static function request_feed_links($event_data) {
+ $event_data->feeds[t("All new comments")] = url::site("rss/comments");
+ $event_data->feeds[sprintf(t("Comments on %s"), $event_data->item->title)] =
+ url::site("rss/comments/{$event_data->item->id}");
+ }
}