From e5d185e17e613b7a9737fc76310f1e78008f71ec Mon Sep 17 00:00:00 2001 From: Kate Arzamastseva Date: Tue, 2 Aug 2011 20:25:17 +0300 Subject: issue #9 config option to disable media revisions, auth --- feed.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'feed.php') diff --git a/feed.php b/feed.php index 1b3641cff..298777eb9 100644 --- a/feed.php +++ b/feed.php @@ -410,10 +410,11 @@ function rss_buildItems(&$rss,&$data,$opt){ * @author Andreas Gohr */ function rssRecentChanges($opt){ + global $conf; $flags = RECENTS_SKIP_DELETED; if(!$opt['show_minor']) $flags += RECENTS_SKIP_MINORS; - if($opt['content_type'] == 'media') $flags += RECENTS_MEDIA_CHANGES; - if($opt['content_type'] == 'both') $flags += RECENTS_MEDIA_PAGES_MIXED; + if($opt['content_type'] == 'media' && $conf['mediarevisions']) $flags += RECENTS_MEDIA_CHANGES; + if($opt['content_type'] == 'both' && $conf['mediarevisions']) $flags += RECENTS_MEDIA_PAGES_MIXED; $recents = getRecents(0,$opt['items'],$opt['namespace'],$flags); return $recents; -- cgit v1.2.3