diff options
-rw-r--r-- | doku.php | 6 | ||||
-rw-r--r-- | feed.php | 14 |
2 files changed, 14 insertions, 6 deletions
@@ -51,6 +51,9 @@ html_debug(); exit; } + + //make infos about the selected page available + $INFO = pageinfo(); //already logged in? if($_SERVER['REMOTE_USER'] && $ACT=='login') $ACT='show'; @@ -111,9 +114,6 @@ } } - //make infos about current page available - $INFO = pageinfo(); - //Editing: check if locked by anyone - if not lock for my self if(($ACT == 'edit' || $ACT == $lang['btn_preview']) && $INFO['editable']){ $lockedby = checklock($ID); @@ -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 } } |