fixing error in r55903 - User object from userid is now used instead of wgUser (curre...
authorTobias <churchofemacs@users.mediawiki.org>
Sun, 6 Sep 2009 23:34:58 +0000 (23:34 +0000)
committerTobias <churchofemacs@users.mediawiki.org>
Sun, 6 Sep 2009 23:34:58 +0000 (23:34 +0000)
includes/specials/SpecialContributions.php

index f6f81d0..ce621a3 100644 (file)
@@ -162,7 +162,7 @@ class SpecialContributions extends SpecialPage {
                        $tools[] = $sk->link( $talk, wfMsgHtml( 'sp-contributions-talk' ) );
                        if( ( $id != 0 && $wgSysopUserBans ) || ( $id == 0 && IP::isIPAddress( $nt->getText() ) ) ) {
                                if( $wgUser->isAllowed( 'block' ) ) { # Block / Change block / Unblock links
-                                       if ( $wgUser->isBlocked() ) {
+                                       if ( User::newFromId( $id )->isBlocked() ) {
                                                $tools[] = $sk->linkKnown( # Change block link
                                                        SpecialPage::getTitleFor( 'Blockip', $nt->getDBkey() ),
                                                        wfMsgHtml( 'change-blocklink' )
@@ -174,8 +174,7 @@ class SpecialContributions extends SpecialPage {
                                                        array(
                                                                'action' => 'unblock',
                                                                'ip' => $nt->getDBkey() 
-                                                       ),
-                                                       array( 'known' )
+                                                       )
                                                );
                                        }
                                        else { # User is not blocked