]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/pingee.pm
po: gettext-ize error messages
[git.ikiwiki.info.git] / IkiWiki / Plugin / pingee.pm
index ee799a57a119b9e079cfc13f81b92b48317a5dc0..f5386d0cae4ccb638913c9d6a7ac9a8e2a3d94af 100644 (file)
@@ -3,13 +3,22 @@ package IkiWiki::Plugin::pingee;
 
 use warnings;
 use strict;
 
 use warnings;
 use strict;
-use IkiWiki 2.00;
+use IkiWiki 3.00;
 
 
-sub import { #{{{
-       hook(type => "cgi", id => "aggregate", call => \&cgi);
-} # }}}
+sub import {
+       hook(type => "getsetup", id => "pingee", call => \&getsetup);
+       hook(type => "cgi", id => "pingee", call => \&cgi);
+}
 
 
-sub cgi ($) { #{{{
+sub getsetup () {
+       return 
+               plugin => {
+                       safe => 1,
+                       rebuild => undef,
+               },
+}
+
+sub cgi ($) {
        my $cgi=shift;
 
        if (defined $cgi->param('do') && $cgi->param("do") eq "ping") {
        my $cgi=shift;
 
        if (defined $cgi->param('do') && $cgi->param("do") eq "ping") {
@@ -28,6 +37,6 @@ sub cgi ($) { #{{{
                IkiWiki::saveindex();
                exit 0;
        }
                IkiWiki::saveindex();
                exit 0;
        }
-} #}}}
+}
 
 1
 
 1