From: Tim Starling Date: Mon, 26 Jan 2004 14:22:03 +0000 (+0000) Subject: Bug fix: moving both normal page and talk page within a non-article namespace X-Git-Tag: 1.3.0beta1~1092 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=c5e8241dc0417cb2d51c50908321415a0d8db06d;p=lhc%2Fweb%2Fwiklou.git Bug fix: moving both normal page and talk page within a non-article namespace --- 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