From 1882da74f6d745af17968940542a4bc21fc2853b Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 30 Nov 2003 01:33:58 +0000 Subject: [PATCH] Whitespace and paranoia --- includes/SpecialContributions.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index 6e8f56353e..ada251314f 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -17,6 +17,7 @@ function wfSpecialContributions( $par = "" ) } list( $limit, $offset ) = wfCheckLimits( 50, "" ); $offlimit = $limit + $offset; + $hideminor = ($hideminor ? 1 : 0); $nt = Title::newFromURL( $target ); $nt->setNamespace( Namespace::getUser() ); @@ -43,11 +44,11 @@ function wfSpecialContributions( $par = "" ) WfMsg( "show" ), "target=" . wfEscapeHTML( $nt->getPrefixedURL() ) . "&offset={$offset}&limit={$limit}&hideminor=0" ); } else { - $cmq = $omq = ""; + $cmq = $omq = ""; $mlink = $sk->makeKnownLink( $wgLang->specialPage( "Contributions" ), WfMsg( "hide" ), "target=" . wfEscapeHTML( $nt->getPrefixedURL() ) . "&offset={$offset}&limit={$limit}&hideminor=1" ); - } + } $top = wfShowingResults( $offset, $limit ); $wgOut->addHTML( "

{$top}\n" ); -- 2.20.1