From: Antoine Musso Date: Mon, 1 May 2006 13:03:58 +0000 (+0000) Subject: Fix #218: Redirects do not support named anchors X-Git-Tag: 1.31.0-rc.0~57292 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=780c02b32c9785172ed95d024c958d39d8806706;p=lhc%2Fweb%2Fwiklou.git Fix #218: Redirects do not support named anchors Probably need backporting in REL1_6 for 1.6.4 release. --- 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; }