]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/orphans.pm
* Changed calling convention for httmllink slightly. The first three
[ikiwiki.git] / IkiWiki / Plugin / orphans.pm
index def8e92d67eb7440c4a22f9ecf61211b9c65893b..f221954b807fedf1eb8612ab13a5a333702dbfe3 100644 (file)
@@ -28,7 +28,7 @@ sub preprocess (@) { #{{{
        my $discussion=gettext("discussion");
        foreach my $page (keys %renderedfiles) {
                next if $linkedto{$page};
-               next unless pagespec_match($page, $params{pages});
+               next unless pagespec_match($page, $params{pages}, $params{page});
                # If the page has a link to some other page, it's
                # indirectly linked to a page via that page's backlinks.
                next if grep { 
@@ -40,7 +40,15 @@ sub preprocess (@) { #{{{
        }
        
        return gettext("All pages are linked to by other pages.") unless @orphans;
-       return "<ul>\n".join("\n", map { "<li>".htmllink($params{page}, $params{destpage}, $_, 1)."</li>" } sort @orphans)."</ul>\n";
+       return "<ul>\n".
+               join("\n",
+                       map {
+                               "<li>".
+                               htmllink($params{page}, $params{destpage}, $_,
+                                        noimageinline => 1).
+                               "</li>"
+                       } sort @orphans).
+               "</ul>\n";
 } # }}}
 
 1