Change the "request_feed_links" eventing handling so that individual modules

provide the part of the url (the suffix) that they are interested in and the
rss module will format the rest of the url.
This commit is contained in:
Tim Almdal
2009-06-12 06:58:53 -07:00
parent fcddeefa59
commit e5793b5b26
3 changed files with 6 additions and 4 deletions

View File

@@ -23,8 +23,8 @@ class comment_event_Core {
}
static function request_feed_links($event_data) {
$event_data->feeds[t("All new comments")] = url::site("rss/comments");
$event_data->feeds[t("All new comments")] = "comments";
$event_data->feeds[sprintf(t("Comments on %s"), $event_data->item->title)] =
url::site("rss/comments/{$event_data->item->id}");
"comments/{$event_data->item->id}";
}
}