Index: trunk/extensions/CheckUser/api/ApiQueryCheckUser.php |
— | — | @@ -54,7 +54,6 @@ |
55 | 55 | foreach ( $res as $row ) { |
56 | 56 | $timestamp = wfTimestamp( TS_ISO_8601, $row->cuc_timestamp ); |
57 | 57 | $ip = strval( $row->cuc_ip ); |
58 | | - //$xff = $row->cuc_xff; |
59 | 58 | |
60 | 59 | if ( !isset( $ips[$ip] ) ) { |
61 | 60 | $ips[$ip]['end'] = $timestamp; |
— | — | @@ -141,7 +140,7 @@ |
142 | 141 | $this->addWhere( $cond ); |
143 | 142 | $log_type = 'ipusers'; |
144 | 143 | if ( isset( $xff ) ) { |
145 | | - $log_type .= 'xff'; |
| 144 | + $log_type .= '-xff'; |
146 | 145 | } |
147 | 146 | } else { |
148 | 147 | $this->dieUsage( 'IP or range is invalid', 'invalidip' ); |