r39188 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r39187‎ | r39188 | r39189 >
Date:22:55, 11 August 2008
Author:aaron
Status:old
Tags:
Comment:
reflect CU renames (bug 14350)
Modified paths:
  • /trunk/extensions/CheckUser/CheckUser_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CheckUser/CheckUser_body.php
@@ -883,7 +883,7 @@
884884 $comment = $skin->commentBlock( $row->cul_reason );
885885 }
886886
887 - $user = $skin->userLink( $row->cul_user, $row->cul_user_text );
 887+ $user = $skin->userLink( $row->cul_user, $row->user_name );
888888
889889 if ( $row->cul_type == 'userips' ) {
890890 $target = $skin->userLink( $row->cul_target_id, $row->cul_target_text ) .
@@ -926,9 +926,9 @@
927927 function getQueryInfo() {
928928 global $wgRequest;
929929 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')
933933 );
934934 }
935935
@@ -939,5 +939,10 @@
940940 function getTitle() {
941941 return $this->specialPage->getLogSubpageTitle();
942942 }
 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+ }
943948 }
944949

Status & tagging log