From: Florent Bruneau Date: Sat, 25 Aug 2007 15:21:05 +0000 (+0200) Subject: Fix URLs in the wiki RSS X-Git-Tag: xorg/0.9.15~190 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=75d6f6c59ca8352fee3929d99bd57ba6a0602d79;p=platal.git Fix URLs in the wiki RSS --- diff --git a/include/wiki/engine.php b/include/wiki/engine.php index ad5d9a1..08d7572 100644 --- a/include/wiki/engine.php +++ b/include/wiki/engine.php @@ -92,6 +92,7 @@ $wiki_exists = file_exists(wiki_work_dir() . '/' . wiki_filename($n)); if ($feed) { $wikiAll = str_replace('dc:contributor', 'author', $wikiAll); $wikiAll = preg_replace('!.*?\..*?\.(\d{4})\|(.*?)!u', '$2 (X$1)', $wikiAll); + $wikiAll = str_replace('./', '' . $globals->baseurl . '/' . $platal->ns, $wikiAll); echo $wikiAll; pl_clear_errors(); exit;