Index: trunk/phase3/includes/SpecialMovepage.php |
— | — | @@ -326,11 +326,12 @@ |
327 | 327 | 'page_title LIKE '.$dbr->addQuotes( $dbr->escapeLike( $ot->getDBkey() ) . '/%' ) |
328 | 328 | .' OR page_title = ' . $dbr->addQuotes( $ot->getDBkey() ) |
329 | 329 | ); |
| 330 | + $conds['page_namespace'] = array(); |
| 331 | + if( !empty( $wgNamespacesWithSubpages[$nt->getNamespace()] ) ) { |
| 332 | + $conds['page_namespace'] []= $ot->getNamespace(); |
| 333 | + } |
330 | 334 | if( $this->moveTalk && !empty( $wgNamespacesWithSubpages[$nt->getTalkPage()->getNamespace()] ) ) { |
331 | | - $conds['page_namespace'] = array( $ot->getNamespace(), |
332 | | - MWNamespace::getTalk($ot->getNamespace()) ); |
333 | | - } else { |
334 | | - $conds['page_namespace'] = $ot->getNamespace(); |
| 335 | + $conds['page_namespace'] []= $ot->getTalkPage()->getNamespace(); |
335 | 336 | } |
336 | 337 | } elseif( $this->moveTalk ) { |
337 | 338 | $conds = array( |