User:AnomieBOT/source/tasks/WikiProjectWorker.pm: Difference between revisions

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: WikiProjectWorker: * Crap, wrong edit summary.
AnomieBOT (talk | contribs)
Updating published sources: WikiProjectWorker: * D'oh, spelling error.
Line 211:
my $key=undef;
$key='southerncalifornia' if $banner eq 'WikiProject Southern California';
$key='santabarbaracounty' if $banner eq 'WikiProject Santa Barbara CountryCounty';
return undef unless defined($key);
push @params, "$key=yes" unless grep(s/^(\s*\Q$key\E\s*=\s*).*?(\s*)$/${1}yes$2/s, @params);
Line 231:
if(ref($outtxt) eq 'HASH'){
$api->warn("Preprocessing $title failed: ".$outtxt->{'error'}."\n");
next;
}
if(!@merge){
$api->warn("$title contains ".$iter->iterval.", but not in section 0\n");
next;
}
Line 258 ⟶ 262:
$out.="}}";
return undef if $out eq $wikitext;
#push @summary, "updating $main_banner" unless @summary;
return $out;
}, $main_banner, @params);