From: Alexandre Emsenhuber Date: Sun, 7 Nov 2010 18:59:39 +0000 (+0000) Subject: * (bug 25713) SpecialPage::resolveAlias() now normalise spaces to underscores X-Git-Tag: 1.31.0-rc.0~34015 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=b66caf2e6e7dc39fb347b778f78690d6599ca5cc;p=lhc%2Fweb%2Fwiklou.git * (bug 25713) SpecialPage::resolveAlias() now normalise spaces to underscores --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 5733e9af7a..15e2dbd4c8 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -402,6 +402,7 @@ LocalSettings.php. The specific bugs are listed below in the general notes. * (bug 25488) Disallowing anonymous users to read pages no longer throws error on discussion pages with vector as default skin * (bug 24833) Files name in includes/diff/ are now less confusing +* (bug 25713) SpecialPage::resolveAlias() now normalise spaces to underscores === API changes in 1.17 === * (bug 22738) Allow filtering by action type on query=logevent. diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index 859865effb..c728aee023 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -272,6 +272,7 @@ class SpecialPage { if ( !self::$mListInitialised ) self::initList(); if ( is_null( self::$mAliases ) ) self::initAliasList(); $caseFoldedAlias = $wgContLang->caseFold( $alias ); + $caseFoldedAlias = str_replace( ' ', '_', $caseFoldedAlias ); if ( isset( self::$mAliases[$caseFoldedAlias] ) ) { return self::$mAliases[$caseFoldedAlias]; } else {