From: joey Date: Fri, 6 Apr 2007 23:30:22 +0000 (+0000) Subject: oops X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/e589e24fada323869811c763ef9798e83ea5a74d oops --- 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;