Bug fix: moving both normal page and talk page within a non-article namespace
authorTim Starling <tstarling@users.mediawiki.org>
Mon, 26 Jan 2004 14:22:03 +0000 (14:22 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Mon, 26 Jan 2004 14:22:03 +0000 (14:22 +0000)
includes/SpecialMovepage.php

index b85f382..0e5e743 100644 (file)
@@ -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