* (bug 2367) Insert correct redirect link record on page move
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 10 Jun 2005 03:03:15 +0000 (03:03 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 10 Jun 2005 03:03:15 +0000 (03:03 +0000)
RELEASE-NOTES
includes/Title.php

index 7172557..7763238 100644 (file)
@@ -274,6 +274,7 @@ Various bugfixes, small features, and a few experimental things:
 * Disallow close tags and enforce empty tags for <hr> and <br>
 * Changed user_groups format quite a bit.
 * (bug 2368) Avoid fatally breaking PHP 4.1.2 in a debug line
+* (bug 2367) Insert correct redirect link record on page move
 
 
 === Caveats ===
index 60fc458..2c5111a 100644 (file)
@@ -1641,8 +1641,8 @@ class Title {
                $dbw->insert( 'pagelinks',
                        array(
                                'pl_from'      => $newid,
-                               'pl_namespace' => $this->getNamespace(),
-                               'pl_title'     => $this->getDbKey() ),
+                               'pl_namespace' => $nt->getNamespace(),
+                               'pl_title'     => $nt->getDbKey() ),
                        $fname );
                
                # Purge squid
@@ -1718,8 +1718,8 @@ class Title {
                $dbw->insert( 'pagelinks',
                        array(
                                'pl_from'      => $newid,
-                               'pl_namespace' => $this->getNamespace(),
-                               'pl_title'     => $this->getDBkey() ),
+                               'pl_namespace' => $nt->getNamespace(),
+                               'pl_title'     => $nt->getDBkey() ),
                        $fname );
 
                # Non-existent target may have had broken links to it; these must