From: Brion Vibber Date: Fri, 10 Jun 2005 03:03:15 +0000 (+0000) Subject: * (bug 2367) Insert correct redirect link record on page move X-Git-Tag: 1.5.0beta1~203 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=41d08e843fa64efeae9a95fc0d734323d1d4946b;p=lhc%2Fweb%2Fwiklou.git * (bug 2367) Insert correct redirect link record on page move --- 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