Index: trunk/phase3/includes/specials/SpecialContributions.php |
— | — | @@ -239,14 +239,15 @@ |
240 | 240 | |
241 | 241 | /** |
242 | 242 | * Show a note if the user is blocked and display the last block log entry. |
243 | | - * @param Title $nt Title object for the target |
| 243 | + * @param Title $title Title object for the target |
| 244 | + * @param $userId ID of the user |
244 | 245 | */ |
245 | | - protected function showBlock( $nt, $id ) { |
| 246 | + protected function showBlock( $title, $userId ) { |
246 | 247 | global $wgUser, $wgOut; |
247 | | - if ( !User::newFromID( $id )->isBlocked() ) |
| 248 | + if ( !User::newFromID( $userId )->isBlocked() ) |
248 | 249 | return; # User is not blocked, nothing to do here |
249 | 250 | $loglist = new LogEventsList( $wgUser->getSkin(), $wgOut ); |
250 | | - $pager = new LogPager( $loglist, 'block', false, $nt->getPrefixedText() ); |
| 251 | + $pager = new LogPager( $loglist, 'block', false, $title->getPrefixedText() ); |
251 | 252 | // Check if there is something in the block log. |
252 | 253 | // If this is not the case, either the user is not blocked, |
253 | 254 | // or the account has been hidden via hideuser. |
— | — | @@ -264,7 +265,7 @@ |
265 | 266 | SpecialPage::getTitleFor( 'Log', 'block' ), |
266 | 267 | wfMsgHtml( 'log-fulllog' ), |
267 | 268 | array(), |
268 | | - array( 'page' => $nt->getPrefixedText() ) |
| 269 | + array( 'page' => $title->getPrefixedText() ) |
269 | 270 | ) ); |
270 | 271 | } |
271 | 272 | $wgOut->addHTML( '</div>' ); |