summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoe.lapp <joe.lapp@pobox.com>2005-09-16 22:37:29 +0200
committerjoe.lapp <joe.lapp@pobox.com>2005-09-16 22:37:29 +0200
commit31f1284d8344c4ed31c2fbb0f337ecb1c29f9042 (patch)
treed407a4b683df45a3648f4e49fa9030d6cdbf3758
parent92e52d8df39efe958675e8abca7ecae1edb6bf80 (diff)
downloadrpg-31f1284d8344c4ed31c2fbb0f337ecb1c29f9042.tar.gz
rpg-31f1284d8344c4ed31c2fbb0f337ecb1c29f9042.tar.bz2
$conf['rss_type'] selecting default RSS feed type
darcs-hash:20050916203729-36b45-e260ee168228c79204402c72244f7561e02dd8eb.gz
-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';