From: Brion Vibber Date: Thu, 27 Oct 2005 21:59:53 +0000 (+0000) Subject: * (bug 3807) Fix 'all' in namespaces drop-down on contribs, rc X-Git-Tag: 1.6.0~1296 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=a0ce9a1238949221228ffccca09aaf666638e9d3;p=lhc%2Fweb%2Fwiklou.git * (bug 3807) Fix 'all' in namespaces drop-down on contribs, rc --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index a2a7f8e59f..66b6900510 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -176,6 +176,7 @@ fully support the editing toolbar, but was found to be too confusing. * (bug 2324) image for redirects should be without text and oriented according to content language * (bug 3803) Fix links on Special:Wantedcategories with miser mode off * Fix Special:BrokenRedirects on MySQL 5.0 +* (bug 3807) Fix 'all' in namespaces drop-down on contribs, rc === Caveats === diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 367adf39d9..1b07a1537a 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1323,6 +1323,15 @@ function wfCloseElement( $element ) { return ""; } */ function &HTMLnamespaceselector($selected = '', $allnamespaces = null) { global $wgContLang; + if( $selected !== '' ) { + if( is_null( $selected ) ) { + // No namespace selected; let exact match work without hitting Main + $selected = ''; + } else { + // Let input be numeric strings without breaking the empty match. + $selected = intval( $selected ); + } + } $s = "