* (bug 25843) Links to special pages using link= attribute on images are now normalis...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 9 Nov 2010 12:00:53 +0000 (12:00 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 9 Nov 2010 12:00:53 +0000 (12:00 +0000)
RELEASE-NOTES
includes/Linker.php

index e0445e8..ab0650d 100644 (file)
@@ -408,6 +408,8 @@ LocalSettings.php. The specific bugs are listed below in the general notes.
 * (bug 25175) HTML file cache now honor $wgCacheDirectory if
   $wgFileCacheDirectory is not set
 * (bug 13353) Diff3 version checks were too strict, did not detect working diff3
+* (bug 25843) Links to special pages using link= attribute on images are now
+  normalised like normal links to special pages
 
 === API changes in 1.17 ===
 * (bug 22738) Allow filtering by action type on query=logevent.
index c197008..0a460b0 100644 (file)
@@ -553,7 +553,7 @@ class Linker {
                if ( isset( $frameParams['link-url'] ) && $frameParams['link-url'] !== '' ) {
                        $mtoParams['custom-url-link'] = $frameParams['link-url'];
                } elseif ( isset( $frameParams['link-title'] ) && $frameParams['link-title'] !== '' ) {
-                       $mtoParams['custom-title-link'] = $frameParams['link-title'];
+                       $mtoParams['custom-title-link'] = $this->normaliseSpecialPage( $frameParams['link-title'] );
                } elseif ( !empty( $frameParams['no-link'] ) ) {
                        // No link
                } else {