summaryrefslogtreecommitdiff
path: root/feed.php
diff options
context:
space:
mode:
authorKate Arzamastseva <pshns@ukr.net>2011-08-02 20:25:17 +0300
committerKate Arzamastseva <pshns@ukr.net>2011-08-02 20:25:17 +0300
commite5d185e17e613b7a9737fc76310f1e78008f71ec (patch)
treeb0437de06fdea2b4e00e560d145d90c780cc9c2f /feed.php
parent6dd095f599ed20044f98d324cda37bedd57b3d3e (diff)
downloadrpg-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.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;