Content deleted Content added
Updating published sources: BAGBot: * Rename "Last edit" columns to "Last editor" per request |
Updating published sources: TFATitleSubpageCreator: * Canonicalize page names |
||
Line 85:
}
my $link=$1;
# Ask MediaWiki to canonicalize the title for us, because the actual
# normalization can depend on various factors.
my $res=$api->query(titles=>$link);
if($res->{'code'} ne 'success'){
$api->warn("Failed to get canonical name for $link: ".$res->{'error'}."\n");
next;
}
$link=$res->{'query'}{'normalized'}[0]{'to'} // $link;
# Ok, check the page
|