]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/pinger.pm
editpage: Avoid inheriting internal page types.
[git.ikiwiki.info.git] / IkiWiki / Plugin / pinger.pm
index a797fc7bd99de99edbe6cc46ebffd63bd83958b1..932619496c3d3c7634cb1a550a920dae106140a2 100644 (file)
@@ -21,7 +21,6 @@ sub getsetup () {
                plugin => {
                        safe => 1,
                        rebuild => 0,
-                       section => "special-purpose",
                },
                pinger_timeout => {
                        type => "integer",
@@ -46,6 +45,7 @@ sub needsbuild (@) {
                        }
                }
        }
+       return $needsbuild;
 }
 
 sub preprocess (@) {
@@ -106,6 +106,8 @@ sub ping {
                        # only ping when a page was changed, so a ping loop
                        # will still be avoided.
                        next if $url=~/^\Q$config{cgiurl}\E/;
+                       my $local_cgiurl = IkiWiki::cgiurl();
+                       next if $url=~/^\Q$local_cgiurl\E/;
                        
                        $ua->get($url);
                }