master
joey 2007-04-06 23:30:22 +00:00
parent d772fc6ad2
commit e589e24fad
1 changed files with 2 additions and 2 deletions

View File

@ -550,11 +550,11 @@ sub linkify ($$$) { #{{{
$content =~ s{(\\?)$config{wiki_link_regexp}}{ $content =~ s{(\\?)$config{wiki_link_regexp}}{
defined $2 defined $2
? ( $1 ? ( $1
? "[[$2|$3".(length $4 ? "#$4" : "")."]]" ? "[[$2|$3".($4 ? "#$4" : "")."]]"
: htmllink($lpage, $page, linkpage($3), : htmllink($lpage, $page, linkpage($3),
anchor => $4, linktext => pagetitle($2))) anchor => $4, linktext => pagetitle($2)))
: ( $1 : ( $1
? "[[$3".(length $4 ? "#$4" : "")."]]" ? "[[$3".($4 ? "#$4" : "")."]]"
: htmllink($lpage, $page, linkpage($3), : htmllink($lpage, $page, linkpage($3),
anchor => $4)) anchor => $4))
}eg; }eg;