- protected function moveInconsistentPage( $row, $title ) {
- if( $title->exists() || $title->getInterwiki() ) {
- if( $title->getInterwiki() ) {
- $prior = $title->getPrefixedDbKey();
+ /**
+ * @param object $row
+ * @param Title $title
+ */
+ protected function moveInconsistentPage( $row, Title $title ) {
+ if ( $title->exists( Title::GAID_FOR_UPDATE )
+ || $title->getInterwiki()
+ || !$title->canExist()
+ ) {
+ if ( $title->getInterwiki() || !$title->canExist() ) {
+ $prior = $title->getPrefixedDBkey();