]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
oops
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Fri, 6 Apr 2007 23:30:22 +0000 (23:30 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Fri, 6 Apr 2007 23:30:22 +0000 (23:30 +0000)
IkiWiki.pm

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