]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/orphans.pm
recentchanges: delete CGI hook in favour of the global one
[ikiwiki.git] / IkiWiki / Plugin / orphans.pm
index 32cbc5dd5508d3df58945ebef75a80704034c7ad..605e6e43ada79398afe07d1c7c07393612eeca6d 100644 (file)
@@ -4,22 +4,22 @@ package IkiWiki::Plugin::orphans;
 
 use warnings;
 use strict;
-use IkiWiki 2.00;
+use IkiWiki 3.00;
 
-sub import { #{{{
+sub import {
        hook(type => "getsetup", id => "orphans", call => \&getsetup);
        hook(type => "preprocess", id => "orphans", call => \&preprocess);
-} # }}}
+}
 
-sub getsetup () { #{{{
+sub getsetup () {
        return 
                plugin => {
                        safe => 1,
                        rebuild => undef,
                },
-} #}}}
+}
 
-sub preprocess (@) { #{{{
+sub preprocess (@) {
        my %params=@_;
        $params{pages}="*" unless defined $params{pages};
        
@@ -58,6 +58,6 @@ sub preprocess (@) { #{{{
                                "</li>"
                        } sort @orphans).
                "</ul>\n";
-} # }}}
+}
 
 1