From bfd48e7afc4990db23c78588050a8ed44ef3c936 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Tue, 3 May 2005 18:28:53 +0000 Subject: [PATCH] * Fixed a small bug (getting contributions from all namespaces didn't work) * Using inline XHTML rather than XHTML in a system message --- includes/SpecialContributions.php | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) 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; } -- 2.20.1