From c5e8241dc0417cb2d51c50908321415a0d8db06d Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 26 Jan 2004 14:22:03 +0000 Subject: [PATCH] Bug fix: moving both normal page and talk page within a non-article namespace --- includes/SpecialMovepage.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/includes/SpecialMovepage.php b/includes/SpecialMovepage.php index b85f382bbd..0e5e7436d1 100644 --- a/includes/SpecialMovepage.php +++ b/includes/SpecialMovepage.php @@ -167,13 +167,10 @@ class MovePageForm { if ( ( 1 == $wpMovetalk ) && ( ! Namespace::isTalk( $this->ons ) ) && ( $this->ons == $this->nns ) ) { - + $this->ons = $this->nns = Namespace::getTalk( $this->ons ); - - $this->ot = Title::newFromText( Title::makeName( - $this->ons, $wpOldTitle ) ); - $this->nt = Title::newFromText( Title::makeName( - $this->nns, $wpNewTitle ) ); + $this->ot = Title::makeTitle( $this->ons, $this->ot->getDBkey() ); + $this->nt = Title::makeTitle( $this->nns, $this->nt->getDBkey() ); # odt, ndt, ofx, nfx remain the same -- 2.20.1