* (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 ===
*/
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 = "<select name='namespace' class='namespaceselector'>\n\t";
$arr = $wgContLang->getFormattedNamespaces();
if( !is_null($allnamespaces) ) {
$nsform .= "<p>";
$nsform .= wfMsgHtml('namespace');
- $nsform .= HTMLnamespaceselector((int)$ns, '');
+ $nsform .= HTMLnamespaceselector( $ns, '' );
$nsform .= wfElement("input", array(
"type" => "submit",