From: Ævar Arnfjörð Bjarmason Date: Tue, 3 May 2005 18:28:53 +0000 (+0000) Subject: * Fixed a small bug (getting contributions from all namespaces didn't work) X-Git-Tag: 1.5.0alpha2~335 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=bfd48e7afc4990db23c78588050a8ed44ef3c936;p=lhc%2Fweb%2Fwiklou.git * Fixed a small bug (getting contributions from all namespaces didn't work) * Using inline XHTML rather than XHTML in a system message --- diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index 08a043d900..5c347a685c 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -17,7 +17,7 @@ function wfSpecialContributions( $par = '' ) { // GET values $target = $par ? $par : $wgRequest->getVal( 'target' ); - $namespace = $wgRequest->getInt( 'namespace', '' ); + $namespace = $wgRequest->getVal( 'namespace', '' ); $namespace = $namespace === '' ? NULL : $namespace; $invert = $wgRequest->getBool( 'invert' ); $hideminor = ($wgRequest->getBool( 'hideminor' ) ? true : false); @@ -219,26 +219,36 @@ function ucListEdit( $sk, $row ) { function namespaceForm ( $target, $hideminor, $namespace, $invert ) { global $wgContLang, $wgScript; - $namespaceselect = '"; $namespaceselect .= ''; $arr = $wgContLang->getFormattedNamespaces(); foreach( $arr as $ns => $name ) { if( $ns < NS_MAIN ) continue; - $n = $ns == 0 ? wfMsg ( 'blanknamespace' ) : $name; + $n = $ns === NS_MAIN ? wfMsg ( 'blanknamespace' ) : $name; $sel = $namespace === $ns ? ' selected="selected"' : ''; $namespaceselect .= ""; } $namespaceselect .= ''; $submitbutton = ''; - $invertbox = "'; + $invertbox = "'; $out = "
"; $out .= ''; $out .= ''; $out .= ''; - $out .= wfMsg ( 'contributionsformtext', $namespaceselect, $submitbutton, $invertbox ); + $out .= " + + + + + + + + + +
$namespaceselect $submitbutton
$invertbox
"; $out .= '
'; return $out; }