Content deleted Content added
Updating published sources: AccidentalLangLinkFixer, AltLinkTemplateSubster, CategoryCleaner, FlagIconRemover, IMONumberRedirectCreator, ShowByDateSubster: * Turn down limits on the iterators, to see if that helps the memory issue. |
Updating published sources: General: * Update for the addition of 'rvslots'. DatedCategoryDeleterTest: * Disable. It's clear that task won't be needed. BrokenRedirectDeleter: * Handle pages with newlines before the <code>#REDIRECT</code>. |
||
Line 46:
my $api=shift;
my $tok=shift;
my $txt=$tok->{'revisions'}[0]{'slots'}{'main'}{'*'};
$txt=~s/\[\[\s*(?i:Category)\s*:\s*[wW]ikipedia redirects\s*(?:\|.*?)?\]\]\s*//;
return ($txt,"Removing [[Category:Wikipedia redirects]] as that category is not intended for actual redirects");
Line 111:
my ($txt,$log)=$def->{'edit'}($api,$tok);
next if(!defined($txt) || $txt eq $tok->{'revisions'}[0]{'slots'}{'main'}{'*'});
$api->log("Editing $title: $log");
|