mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-26 09:43:54 -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:
@@ -40,7 +40,9 @@ class rss_theme_Core {
|
||||
$event_data->feeds = array();
|
||||
$event_data->item = $theme->item();
|
||||
module::event("request_feed_links", $event_data);
|
||||
|
||||
foreach ($event_data->feeds as $key => $feed) {
|
||||
$event_data->feeds[$key] = url::site("rss/$feed");
|
||||
}
|
||||
$block = new Block();
|
||||
$block->css_id = "gRss";
|
||||
$block->title = t("Available RSS Feeds");
|
||||
|
||||
Reference in New Issue
Block a user