X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/268a2dd54cd47d6ec39c22d61baa5f6f9d40b7f5..b042e4a0511a77df97d1be0657a2621bf1a1de1a:/IkiWiki.pm diff --git a/IkiWiki.pm b/IkiWiki.pm index 611ba6f65..3430c5742 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -881,7 +881,7 @@ sub bestlink ($$) { $l.="/" if length $l; $l.=$link; - if (exists $links{$l}) { + if (exists $pagesources{$l}) { return $l; } elsif (exists $pagecase{lc $l}) { @@ -891,7 +891,7 @@ sub bestlink ($$) { if (length $config{userdir}) { my $l = "$config{userdir}/".lc($link); - if (exists $links{$l}) { + if (exists $pagesources{$l}) { return $l; } elsif (exists $pagecase{lc $l}) { @@ -1083,7 +1083,7 @@ sub htmllink ($$$;@) { my @attrs; foreach my $attr (qw{rel class title}) { if (defined $opts{$attr}) { - push @attrs, " $attr=\"".$opts{attr}.'"'; + push @attrs, " $attr=\"$opts{$attr}\""; } }