summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--conf/dokuwiki.php5
-rw-r--r--feed.php3
2 files changed, 8 insertions, 0 deletions
diff --git a/conf/dokuwiki.php b/conf/dokuwiki.php
index 021c1d75c..0c5cae8c3 100644
--- a/conf/dokuwiki.php
+++ b/conf/dokuwiki.php
@@ -75,6 +75,11 @@ $conf['im_convert'] = ''; //path to ImageMagicks convert (will be
$conf['spellchecker']= 0; //enable Spellchecker (needs PHP >= 4.3.0 and aspell installed)
$conf['subscribers'] = 0; //enable change notice subscription support
$conf['pluginmanager'] = 0; //enable automated plugin management (requires plugin)
+$conf['rss_type'] = 'rss1'; //type of RSS feed to provide, by default:
+ // 'rss' - RSS 0.91
+ // 'rss1' - RSS 1.0
+ // 'rss2' - RSS 2.0
+ // 'atom' - Atom 0.3
$conf['rss_linkto'] = 'diff'; //what page RSS entries link to:
// 'diff' - page showing revision differences
// 'page' - the revised page itself
diff --git a/feed.php b/feed.php
index 7bbfcdd17..0e057eed3 100644
--- a/feed.php
+++ b/feed.php
@@ -23,6 +23,9 @@
$ns = $_REQUEST['ns'];
$ltype = $_REQUEST['linkto'];
+ if($type == '')
+ $type = $conf['rss_type'];
+
switch ($type){
case 'rss':
$type = 'RSS0.9';