diff options
author | Kate Arzamastseva <pshns@ukr.net> | 2011-08-02 20:25:17 +0300 |
---|---|---|
committer | Kate Arzamastseva <pshns@ukr.net> | 2011-08-02 20:25:17 +0300 |
commit | e5d185e17e613b7a9737fc76310f1e78008f71ec (patch) | |
tree | b0437de06fdea2b4e00e560d145d90c780cc9c2f /feed.php | |
parent | 6dd095f599ed20044f98d324cda37bedd57b3d3e (diff) | |
download | rpg-e5d185e17e613b7a9737fc76310f1e78008f71ec.tar.gz rpg-e5d185e17e613b7a9737fc76310f1e78008f71ec.tar.bz2 |
issue #9 config option to disable media revisions, auth
Diffstat (limited to 'feed.php')
-rw-r--r-- | feed.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |