From 31f1284d8344c4ed31c2fbb0f337ecb1c29f9042 Mon Sep 17 00:00:00 2001 From: "joe.lapp" Date: Fri, 16 Sep 2005 22:37:29 +0200 Subject: $conf['rss_type'] selecting default RSS feed type darcs-hash:20050916203729-36b45-e260ee168228c79204402c72244f7561e02dd8eb.gz --- conf/dokuwiki.php | 5 +++++ feed.php | 3 +++ 2 files changed, 8 insertions(+) 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'; -- cgit v1.2.3