User:AnomieBOT/source/tasks/TemplateTalkRedirectCreator.pm: Difference between revisions
Content deleted Content added
Updating published sources: TemplateTalkRedirectCreator: * Use continuation in database query, so the bot doesn't wind up uselessly looping forever if more than 500 invalid pages pile up at the beginning of the list. |
Updating published sources: TemplateTalkRedirectCreator: * Data from the database comes in as a binary string, not UTF-8. So pass it through utf8::decode. |
||
Line 117:
my %redirects = ();
for my $row (@rows) {
utf8::decode( $row->{'title'} ); # Data from database is binary
my $title = $rns{$row->{'ns'}+1} . ':' . $row->{'title'};
$title =~ s/_/ /g;
|