Index: trunk/extensions/CheckUser/CheckUser_body.php |
— | — | @@ -883,7 +883,7 @@ |
884 | 884 | $comment = $skin->commentBlock( $row->cul_reason ); |
885 | 885 | } |
886 | 886 | |
887 | | - $user = $skin->userLink( $row->cul_user, $row->cul_user_text ); |
| 887 | + $user = $skin->userLink( $row->cul_user, $row->user_name ); |
888 | 888 | |
889 | 889 | if ( $row->cul_type == 'userips' ) { |
890 | 890 | $target = $skin->userLink( $row->cul_target_id, $row->cul_target_text ) . |
— | — | @@ -926,9 +926,9 @@ |
927 | 927 | function getQueryInfo() { |
928 | 928 | global $wgRequest; |
929 | 929 | return array( |
930 | | - 'tables' => 'cu_log', |
931 | | - 'fields' => '*', |
932 | | - 'conds' => $this->searchConds |
| 930 | + 'tables' => array('cu_log','user'), |
| 931 | + 'fields' => $this->selectFields(), |
| 932 | + 'conds' => $this->searchConds + array('user_id = cul_user') |
933 | 933 | ); |
934 | 934 | } |
935 | 935 | |
— | — | @@ -939,5 +939,10 @@ |
940 | 940 | function getTitle() { |
941 | 941 | return $this->specialPage->getLogSubpageTitle(); |
942 | 942 | } |
| 943 | + |
| 944 | + function selectFields() { |
| 945 | + return array('cul_id','cul_timestamp','cul_user','cul_reason','cul_type', |
| 946 | + 'cul_target_id','cul_target_text','user_name'); |
| 947 | + } |
943 | 948 | } |
944 | 949 | |