Skip to content
Snippets Groups Projects
Commit 44f11664 authored by Michael Hamann's avatar Michael Hamann
Browse files

Revert "fix indention of RSS patch"

This reverts commit a010fc32.
parent 06ba6baf
No related branches found
No related tags found
No related merge requests found
......@@ -430,21 +430,21 @@ function rss_buildItems(&$rss, &$data, $opt) {
if($cat) $item->category = $cat;
}
// Add only visible items
if(isVisiblePage($id)) {
// finally add the item to the feed object, after handing it to registered plugins
$evdata = array(
'item' => &$item,
'opt' => &$opt,
'ditem' => &$ditem,
'rss' => &$rss
);
$evt = new Doku_Event('FEED_ITEM_ADD', $evdata);
if($evt->advise_before()) {
$rss->addItem($item);
}
$evt->advise_after(); // for completeness
// Add only visible items
if (isVisiblePage($id)) {
// finally add the item to the feed object, after handing it to registered plugins
$evdata = array(
'item' => &$item,
'opt' => &$opt,
'ditem' => &$ditem,
'rss' => &$rss
);
$evt = new Doku_Event('FEED_ITEM_ADD', $evdata);
if($evt->advise_before()) {
$rss->addItem($item);
}
$evt->advise_after(); // for completeness
}
}
}
$event->advise_after();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment