From: Roan Kattouw Date: Fri, 26 Mar 2010 20:55:55 +0000 (+0000) Subject: (bug 22940) Namespace aliases to the main namespace don't work. Patch by quietust X-Git-Tag: 1.31.0-rc.0~37343 X-Git-Url: http://git.heureux-cyclage.org/?a=commitdiff_plain;h=ae43921eb6c5b1c2692e3871a3a1ef5567d156b8;p=lhc%2Fweb%2Fwiklou.git (bug 22940) Namespace aliases to the main namespace don't work. Patch by quietust --- diff --git a/CREDITS b/CREDITS index 27ec75f623..31403d6042 100644 --- a/CREDITS +++ b/CREDITS @@ -110,6 +110,7 @@ following names for their contribution to the product. * Olaf Lenz * Paul Copperman * PieRRoMaN +* quietust * René Kijewski * Robert Treat * RockMFR diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 9a3333ae56..02346e3592 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -57,6 +57,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 19270) Relative URIs in interwiki links break interwiki transclusion * (bug 22903) Revdelete log entries now show in the user preferred language. * (bug 22905) Correctly handle followed by ISBN +* (bug 22940) Namespace aliases pointing to main namespace don't work == API changes in 1.17 == * (bug 22738) Allow filtering by action type on query=logevent diff --git a/includes/Title.php b/includes/Title.php index 011f21ae0c..ea5373cc12 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -2440,7 +2440,7 @@ class Title { $m = array(); if ( preg_match( $prefixRegexp, $dbkey, $m ) ) { $p = $m[1]; - if ( $ns = $wgContLang->getNsIndex( $p ) ) { + if ( ( $ns = $wgContLang->getNsIndex( $p ) ) !== false ) { # Ordinary namespace $dbkey = $m[2]; $this->mNamespace = $ns;