r66617 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r66616‎ | r66617 | r66618 >
Date:19:39, 18 May 2010
Author:jeluf
Status:ok
Tags:
Comment:
Move talk pages, too, cf. bug #23409
Modified paths:
  • /trunk/phase3/maintenance/namespaceDupes.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/namespaceDupes.php
@@ -199,10 +199,10 @@
200200
201201 $sql = "SELECT {$page}_id AS id,
202202 {$page}_title AS oldtitle,
203 - $encNamespace AS namespace,
 203+ $encNamespace + {$page}_namespace AS namespace,
204204 $titleSql AS title
205205 FROM {$table}
206 - WHERE {$page}_namespace=0
 206+ WHERE ( {$page}_namespace=0 OR {$page}_namespace=1 )
207207 AND {$page}_title " . $this->db->buildLike( $name . ':', $this->db->anyString() );
208208
209209 $result = $this->db->query( $sql, __METHOD__ );

Status & tagging log