Skip to content
Snippets Groups Projects
Commit f5151bdb authored by Snarkturne's avatar Snarkturne
Browse files

Exclude hidden pages (config["hidepages"]) from RSS feed (see...

Exclude hidden pages (config["hidepages"]) from RSS feed (see https://www.dokuwiki.org/config:hidepages)
parent 6540219f
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