From: Tobias Date: Mon, 7 Sep 2009 17:49:36 +0000 (+0000) Subject: Minor fixes to r55918 - documentation and variable names X-Git-Tag: 1.31.0-rc.0~39877 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=21f131a6bf26d869283d6313209ca7adb62e7eb1;p=lhc%2Fweb%2Fwiklou.git Minor fixes to r55918 - documentation and variable names --- diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index e365ba820a..f34eeafdb2 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -239,14 +239,15 @@ class SpecialContributions extends SpecialPage { /** * Show a note if the user is blocked and display the last block log entry. - * @param Title $nt Title object for the target + * @param Title $title Title object for the target + * @param $userId ID of the user */ - protected function showBlock( $nt, $id ) { + protected function showBlock( $title, $userId ) { global $wgUser, $wgOut; - if ( !User::newFromID( $id )->isBlocked() ) + if ( !User::newFromID( $userId )->isBlocked() ) return; # User is not blocked, nothing to do here $loglist = new LogEventsList( $wgUser->getSkin(), $wgOut ); - $pager = new LogPager( $loglist, 'block', false, $nt->getPrefixedText() ); + $pager = new LogPager( $loglist, 'block', false, $title->getPrefixedText() ); // Check if there is something in the block log. // If this is not the case, either the user is not blocked, // or the account has been hidden via hideuser. @@ -264,7 +265,7 @@ class SpecialContributions extends SpecialPage { SpecialPage::getTitleFor( 'Log', 'block' ), wfMsgHtml( 'log-fulllog' ), array(), - array( 'page' => $nt->getPrefixedText() ) + array( 'page' => $title->getPrefixedText() ) ) ); } $wgOut->addHTML( '' );