]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki.pm
rename headers
[ikiwiki.git] / IkiWiki.pm
index 611ba6f6540c6ae6b789bd49d477876b500b9eaf..3430c57420df18fc02ea6bca88229534d5b59d15 100644 (file)
@@ -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}\"";
                }
        }