diff options
-rw-r--r-- | IkiWiki.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index 37ff792d1..52ae60d40 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -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; |