summaryrefslogtreecommitdiff
path: root/inc/html.php
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-04-22 16:52:35 +0200
committerandi <andi@splitbrain.org>2005-04-22 16:52:35 +0200
commit723d78db98a03f01d49b69501be9dc9cf2c52b50 (patch)
treec5f08353be3d104e0194f0b80c607606e75eae68 /inc/html.php
parent58b56c06b2faa9a63bc301bd437972956880e6fa (diff)
downloadrpg-723d78db98a03f01d49b69501be9dc9cf2c52b50.tar.gz
rpg-723d78db98a03f01d49b69501be9dc9cf2c52b50.tar.bz2
fixed html_wikilink
darcs-hash:20050422145235-9977f-5607e92b1984b5b8444b5325827b3f3fda275898.gz
Diffstat (limited to 'inc/html.php')
-rw-r--r--inc/html.php17
1 files changed, 6 insertions, 11 deletions
diff --git a/inc/html.php b/inc/html.php
index 42aba6965..06060e2db 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -15,19 +15,14 @@
*
* @author Andreas Gohr <andi@splitbrain.org>
*/
-function html_wikilink($url,$name='',$search=''){
- global $conf;
- $link = array();
- $link['url'] = $url;
- $link['name'] = $name;
- $link = format_link_wiki($link);
-
- if($search){
- ($conf['userewrite']) ? $link['url'].='?s=' : $link['url'].='&amp;s=';
- $link['url'] .= urlencode($search);
+function html_wikilink($id,$name='',$search=''){
+ require_once(DOKU_INC.'inc/parser/xhtml.php');
+ static $xhtml_renderer = NULL;
+ if(is_null($xhtml_renderer)){
+ $xhtml_renderer = new Doku_Renderer_xhtml();
}
- return format_link_build($link);
+ return $xhtml_renderer->internallink($id,$name,$search);
}
/**