Fix #218: Redirects do not support named anchors
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 1 May 2006 13:03:58 +0000 (13:03 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 1 May 2006 13:03:58 +0000 (13:03 +0000)
Probably need backporting in REL1_6 for 1.6.4 release.

RELEASE-NOTES
includes/Wiki.php

index 3ddc2e2..30583d9 100644 (file)
@@ -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 ==
 
index be3a8b4..e5051b5 100644 (file)
@@ -225,7 +225,7 @@ class MediaWiki {
                                        if ($rarticle->mTitle->mArticleID) {
                                                $article = $rarticle;
                                                $wgTitle = $target;
-                                               $article->setRedirectedFrom( $title );
+                                               $article->setRedirectedFrom( $target );
                                        } else {
                                                $wgTitle = $title;
                                        }