r44540 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44539‎ | r44540 | r44541 >
Date:19:47, 13 December 2008
Author:aaron
Status:ok
Tags:
Comment:
IPs cannot be unified :)
Modified paths:
  • /trunk/extensions/CheckUser/CheckUser_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CheckUser/CheckUser_body.php
@@ -815,7 +815,6 @@
816816 $s .= Xml::check( 'users[]', false, array( 'value' => $name ) ) . ' ';
817817 # Load user object
818818 $user = User::newFromName( $name, false );
819 - $authUser = $wgAuth->getUserInstance( $user );
820819 # Add user tool links
821820 $s .= $this->sk->userLink( -1 , $name ) . $this->sk->userToolLinks( -1 , $name );
822821 # Add CheckUser link
@@ -863,7 +862,8 @@
864863 $flags[] = '<strong>(' . $blocklog . ')</strong>';
865864 }
866865 # Show if account is local only
867 - if( $authUser->getId() === 0 ) {
 866+ $authUser = $wgAuth->getUserInstance( $user );
 867+ if( $user->getId() && $authUser->getId() === 0 ) {
868868 $flags[] = '<strong>(' . wfMsgHtml('checkuser-localonly') . ')</strong>';
869869 }
870870 # Check for extra user rights...

Status & tagging log