]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki.pm
rename: Fix some utf-8 problems.
[ikiwiki.git] / IkiWiki.pm
index ac01ea4180c25224892ba8a5cfa1d807df67c1af..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}) {
@@ -1081,11 +1081,10 @@ sub htmllink ($$$;@) {
        }
 
        my @attrs;
-       if (defined $opts{rel}) {
-               push @attrs, ' rel="'.$opts{rel}.'"';
-       }
-       if (defined $opts{class}) {
-               push @attrs, ' class="'.$opts{class}.'"';
+       foreach my $attr (qw{rel class title}) {
+               if (defined $opts{$attr}) {
+                       push @attrs, " $attr=\"$opts{$attr}\"";
+               }
        }
 
        return "<a href=\"$bestlink\"@attrs>$linktext</a>";
@@ -2120,10 +2119,7 @@ sub merge_influences {
        }
        else {
                # influence blocker
-               print STDERR "merging $this and $other; found influence blocker\n";
                $this->[1]={};
-               $this->[2]=1;
-               return;
        }
 }