]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/pingee.pm
po: inject our own (currently a no-op) nicepagetitle function
[git.ikiwiki.info.git] / IkiWiki / Plugin / pingee.pm
index ee799a57a119b9e079cfc13f81b92b48317a5dc0..fcbe6b57b151cc7ac8a174d708f32ba9a589ca1d 100644 (file)
@@ -5,11 +5,20 @@ use warnings;
 use strict;
 use IkiWiki 2.00;
 
 use strict;
 use IkiWiki 2.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