From 41d08e843fa64efeae9a95fc0d734323d1d4946b Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 10 Jun 2005 03:03:15 +0000 Subject: [PATCH] * (bug 2367) Insert correct redirect link record on page move --- RELEASE-NOTES | 1 + includes/Title.php | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 7172557774..77632388f0 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -274,6 +274,7 @@ Various bugfixes, small features, and a few experimental things: * Disallow close tags and enforce empty tags for
and
* 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 === diff --git a/includes/Title.php b/includes/Title.php index 60fc458b72..2c5111a979 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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 -- 2.20.1