mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-06 03:29:28 -04:00
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:
@@ -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}";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user