From a0ce9a1238949221228ffccca09aaf666638e9d3 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 27 Oct 2005 21:59:53 +0000 Subject: [PATCH] * (bug 3807) Fix 'all' in namespaces drop-down on contribs, rc --- RELEASE-NOTES | 1 + includes/GlobalFunctions.php | 9 +++++++++ includes/SpecialContributions.php | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) 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 = "