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

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: EnDashRedirectCreator: * Log time for the DB query.
AnomieBOT (talk | contribs)
Updating published sources: EnDashRedirectCreator: * Apply {{tl|R avoided double redirect}} when appropriate.
Line 250:
$target .= '#' . $fragment if defined( $fragment );
my $tosection = defined( $fragment ) ? '{{R to section}}' : '';
my $double = $origtarget eq $target ? '' : "{{R avoided double redirect|1=$origtarget}}";
my $txt = "#REDIRECT [[:$target]]\n{{Redirect shell|{{R from modification|1={{-r|$origtarget}}}}$double$tosection}}\n{{User:AnomieBOT/Auto-G8|target=$origtarget}}";
my @what = ();
while ( my ($char, $what) = each %dashes ) {