Content deleted Content added
Updating published sources: TaskRedirectChecker: * Canonicalize redirect titles |
Updating published sources: TaskRedirectChecker: * Canonicalize redirect titles |
||
Line 55:
sub run {
my ($self, $api)=@_;
my $res;
$api->task('TaskRedirectChecker', 0, 10, qw(d::Timestamp d::Redirects d::Talk));
Line 79 ⟶ 80:
# Ask MediaWiki to canonicalize the title for us, because the actual
# normalization can depend on various factors.
if($res->{'code'} ne 'success'){
$api->warn("Failed to get canonical name for $title: ".$res->{'error'}."\n");
Line 89 ⟶ 90:
# because the encoded anchors returned in "sections" varies based on
# server settings. Note this doesn't support {{anchor}} or the like.
if($res->{'code'} ne 'success'){
$api->warn("Failed to retrieve section list for $title: ".$res->{'error'});
|