summaryrefslogtreecommitdiff
path: root/feed.php
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-06-05 12:38:42 +0200
committerandi <andi@splitbrain.org>2005-06-05 12:38:42 +0200
commitf62ea8a1d1cf10eddeae777b11420624e111b7ea (patch)
tree87a15e898308a5de1ef37874645a4cdcb83c707b /feed.php
parent248a73214063d2fe47787c8c4aa292777cddb12b (diff)
downloadrpg-f62ea8a1d1cf10eddeae777b11420624e111b7ea.tar.gz
rpg-f62ea8a1d1cf10eddeae777b11420624e111b7ea.tar.bz2
directory layout cleanup !IMPORTANT
This patch changes the directory structure of dokuwiki as suggested in http://www.freelists.org/archives/dokuwiki/06-2005/msg00045.html As the changes.log is not managed through darcs you need to move it your self to the new location in data/changes.log I think I modified the code at all nessessary places, but I may have forgotten a few things. darcs-hash:20050605103842-9977f-af20f63c1d604888375d175d89ac6bd71566d47d.gz
Diffstat (limited to 'feed.php')
-rw-r--r--feed.php18
1 files changed, 11 insertions, 7 deletions
diff --git a/feed.php b/feed.php
index 8b24d2d28..96263c5b8 100644
--- a/feed.php
+++ b/feed.php
@@ -51,12 +51,12 @@
$rss = new DokuWikiFeedCreator();
$rss->title = $conf['title'];
$rss->link = DOKU_URL;
- $rss->syndicationURL = DOKU_URL.'/feed.php';
- $rss->cssStyleSheet = DOKU_URL.'/feed.css';
+ $rss->syndicationURL = DOKU_URL.'feed.php';
+ $rss->cssStyleSheet = DOKU_URL.'lib/styles/feed.css';
$image = new FeedImage();
$image->title = $conf['title'];
- $image->url = DOKU_URL."images/favicon.ico";
+ $image->url = DOKU_URL."lib/images/favicon.ico";
$image->link = DOKU_URL;
$rss->image = $image;
@@ -77,7 +77,14 @@
* @author Andreas Gohr <andi@splitbrain.org>
*/
function rssRecentChanges(&$rss,$num,$ltype){
+ global $conf;
+ if(!$num) $num = $conf['recent'];
+
$recents = getRecents(0,$num);
+
+ //this can take some time if a lot of recaching has to be done
+ @set_time_limit(90); // set max execution time
+
foreach(array_keys($recents) as $id){
$desc = cleanDesc(p_wiki_xhtml($id,'',false));
$item = new FeedItem();
@@ -109,9 +116,6 @@ function rssRecentChanges(&$rss,$num,$ltype){
}
$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
}
}
@@ -121,7 +125,7 @@ function rssRecentChanges(&$rss,$num,$ltype){
* @author Andreas Gohr <andi@splitbrain.org>
*/
function rssListNamespace(&$rss,$ns){
- require_once("inc/search.php");
+ require_once(DOKU_INC.'inc/search.php');
global $conf;
$ns=':'.cleanID($ns);