summaryrefslogtreecommitdiff
path: root/feed.php
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-02-26 14:33:25 +0100
committerandi <andi@splitbrain.org>2005-02-26 14:33:25 +0100
commit79b608ce5502b7d28087a42cab5c09927c117c8f (patch)
tree191d809df401a106063b82d7ffbf1ffd0c368aa7 /feed.php
parent3ed6dbb81c78ad592c6f8486fa99b6e1f4e6e8ec (diff)
downloadrpg-79b608ce5502b7d28087a42cab5c09927c117c8f.tar.gz
rpg-79b608ce5502b7d28087a42cab5c09927c117c8f.tar.bz2
some feed tuning
darcs-hash:20050226133325-9977f-001fc0ae4081b812bdef84350074624bb530f6f7.gz
Diffstat (limited to 'feed.php')
-rw-r--r--feed.php14
1 files changed, 11 insertions, 3 deletions
diff --git a/feed.php b/feed.php
index d949345a9..bf9dd486a 100644
--- a/feed.php
+++ b/feed.php
@@ -43,16 +43,22 @@
//some defaults for the feed
$CACHEGROUP = 'feed';
$conf['typography'] = false;
-# $conf['canonical'] = true;
+ $conf['canonical'] = true;
$parser['toc'] = false;
- $rss = new UniversalFeedCreator();
+# $rss = new UniversalFeedCreator();
$rss = new DokuWikiFeedCreator();
$rss->title = $conf['title'];
$rss->link = DOKU_URL;
$rss->syndicationURL = DOKU_URL.'/feed.php';
$rss->cssStyleSheet = DOKU_URL.'/feed.css';
+ $image = new FeedImage();
+ $image->title = $conf['title'];
+ $image->url = DOKU_URL."images/favicon.ico";
+ $image->link = DOKU_URL;
+ $rss->image = $image;
+
if($mode == 'list'){
rssListNamespace($rss,$ns);
}else{
@@ -90,8 +96,10 @@ function rssRecentChanges(&$rss,$num){
$item->author = 'anonymous@';
}
$item->author .= $recents[$id]['ip'];
-
$rss->addItem($item);
+
+ //this can take some time if a lot of recaching has to be done
+ @set_time_limit(30); //reset execution time
}
}