]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/pinger.pm
fix targetpage replacement to support 3 argument form
[git.ikiwiki.info.git] / IkiWiki / Plugin / pinger.pm
index c20ecb5d4ef3a663f5496135f56ddb5369c5dd87..932619496c3d3c7634cb1a550a920dae106140a2 100644 (file)
@@ -45,6 +45,7 @@ sub needsbuild (@) {
                        }
                }
        }
+       return $needsbuild;
 }
 
 sub preprocess (@) {
@@ -105,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);
                }