Index: trunk/phase3/maintenance/namespaceDupes.php |
— | — | @@ -199,10 +199,10 @@ |
200 | 200 | |
201 | 201 | $sql = "SELECT {$page}_id AS id, |
202 | 202 | {$page}_title AS oldtitle, |
203 | | - $encNamespace AS namespace, |
| 203 | + $encNamespace + {$page}_namespace AS namespace, |
204 | 204 | $titleSql AS title |
205 | 205 | FROM {$table} |
206 | | - WHERE {$page}_namespace=0 |
| 206 | + WHERE ( {$page}_namespace=0 OR {$page}_namespace=1 ) |
207 | 207 | AND {$page}_title " . $this->db->buildLike( $name . ':', $this->db->anyString() ); |
208 | 208 | |
209 | 209 | $result = $this->db->query( $sql, __METHOD__ ); |