Skip to content
Snippets Groups Projects
Commit ab6c4142 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

Merge pull request #376 from snarkturne/master

Exclude hidden pages (config["hidepages"]) from RSS feed 
parents 91741454 f5151bdb
No related branches found
No related tags found
No related merge requests found
......@@ -429,7 +429,9 @@ function rss_buildItems(&$rss, &$data, $opt) {
$cat = getNS($id);
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,
......@@ -442,6 +444,7 @@ function rss_buildItems(&$rss, &$data, $opt) {
$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