From 30f1737da3d78693c37d6d8e2cb46fc02f50ad13 Mon Sep 17 00:00:00 2001 From: andi Date: Mon, 25 Apr 2005 19:04:09 +0200 Subject: fix for html_wikilink (fixes #270) darcs-hash:20050425170409-9977f-3d5c0e2a8c210d215ed37ef67b0c6dcabab08ca4.gz --- inc/html.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/html.php b/inc/html.php index f63be6bc9..7ebe1d6a1 100644 --- a/inc/html.php +++ b/inc/html.php @@ -15,7 +15,7 @@ * * @author Andreas Gohr */ -function html_wikilink($id,$name='',$search=''){ +function html_wikilink($id,$name=NULL,$search=''){ require_once(DOKU_INC.'inc/parser/xhtml.php'); static $xhtml_renderer = NULL; if(is_null($xhtml_renderer)){ @@ -478,6 +478,7 @@ function html_index($ns){ global $ID; $dir = $conf['datadir']; $ns = cleanID($ns); + #fixme use appropriate function if(empty($ns)){ $ns = dirname(str_replace(':','/',$ID)); if($ns == '.') $ns =''; -- cgit v1.2.3