Skip to content
Snippets Groups Projects
Commit 9ed00c2e authored by jan's avatar jan
Browse files

Make useheading work again

darcs-hash:20050330144857-45605-a7811307313366b3895fd8718de7df8733ac2aaa.gz
parent 9afe4dbf
No related branches found
No related tags found
No related merge requests found
......@@ -89,18 +89,6 @@ function format_link_wiki($link){
list($link['url'],$hash) = split('#',$link['url'],2);
$hash = cleanID($hash);
//if no name set, use (unclean) link without namespace
if(empty($link['name'])){
if($conf['useslash']){
$nssep = '[:;/]';
}else{
$nssep = '[:;]';
}
$link['name'] = preg_replace('!.*'.$nssep.'!','',$link['url']);
$link['name'] = htmlspecialchars($link['name']);
}
$file = wikiFN($link['url']);
$url = cleanID($link['url']);
......@@ -129,6 +117,17 @@ function format_link_wiki($link){
$link['class']="wikilink2";
}
//if no name set yet, use (unclean) link without namespace
if(empty($link['name'])){
if($conf['useslash']){
$nssep = '[:;/]';
}else{
$nssep = '[:;]';
}
$link['name'] = preg_replace('!.*'.$nssep.'!','',$link['url']);
}
$link['name'] = htmlspecialchars($link['name']);
//set title
$link['title'] = $url;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment