Content deleted Content added
Updating published sources: EnDashRedirectCreator: * If there are multiple dashed talk page titles with conflicting targets, and one matches its subject page while the other doesn't, prefer the matching one. Probably the non-matching talk page is because someone thinks discusson of the subject-space redirect needs to be preserved on that specific talk page (rather than being archived to the target's talk page) so they refuse to redirect it. |
Updating published sources: EnDashRedirectCreator: * As an additional safety check on the previous change, only do that when both of the subject pages redirect to the same target. |
||
Line 274:
( $origtalktgt = $tgts{$origtarget} ) =~ s/^($nsre):/ $ns{$1} > 1 ? "$rns{$ns{$1} & ~1}:" : '' /e;
if ( $oldsubjtgt eq $origsubjtgt && $oldsubjtgt eq $oldtalktgt && $origsubjtgt ne $origtalktgt ) {
$api->log("Skipping [[$origtarget]], [[$redir]] already exists for [[$oldtarget]] and [[$oldtargetSubj]] matches that while [[$origtarget]] does not match [[$origtargetSubj]]");
next;
} elsif ( $oldsubjtgt eq $origsubjtgt && $oldsubjtgt ne $oldtalktgt && $origsubjtgt eq $origtalktgt ) {
$api->warn("Updating [[$redir]] to [[$target]]: [[$redir]] already exists for [[$oldtarget]], but that does not match [[$oldtargetSubj]] while [[$origtarget]] does match [[$origtargetSubj]]");
} else {
|