From 780c02b32c9785172ed95d024c958d39d8806706 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Mon, 1 May 2006 13:03:58 +0000 Subject: [PATCH] Fix #218: Redirects do not support named anchors Probably need backporting in REL1_6 for 1.6.4 release. --- RELEASE-NOTES | 1 + includes/Wiki.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 3ddc2e2eff..30583d9cb2 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -176,6 +176,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 5723) Don't count pages linked to from the MediaWiki namespace as "wanted" * (bug 5696) Add a third parameter, $3, to "rcnote", passing the current time formatted according to the current user's settings +* (bug 218) Redirects do not support named anchors == Compatibility == diff --git a/includes/Wiki.php b/includes/Wiki.php index be3a8b41c7..e5051b56fe 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -225,7 +225,7 @@ class MediaWiki { if ($rarticle->mTitle->mArticleID) { $article = $rarticle; $wgTitle = $target; - $article->setRedirectedFrom( $title ); + $article->setRedirectedFrom( $target ); } else { $wgTitle = $title; } -- 2.20.1