summaryrefslogtreecommitdiff
path: root/feed.php
diff options
context:
space:
mode:
Diffstat (limited to 'feed.php')
-rw-r--r--feed.php5
1 files changed, 3 insertions, 2 deletions
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 <andi@splitbrain.org>
*/
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;