Index: trunk/extensions/CheckUser/CheckUser_body.php |
— | — | @@ -1244,7 +1244,7 @@ |
1245 | 1245 | } |
1246 | 1246 | |
1247 | 1247 | /** |
1248 | | - * @param Database $db |
| 1248 | + * @param DatabaseBase $db |
1249 | 1249 | * @param string $ip |
1250 | 1250 | * @param string|bool $xfor |
1251 | 1251 | * @return mixed array/false conditions |
Index: trunk/extensions/CheckUser/api/ApiQueryCheckUser.php |
— | — | @@ -36,7 +36,7 @@ |
37 | 37 | $this->addTables( 'cu_changes' ); |
38 | 38 | $this->addOption( 'LIMIT', $limit + 1 ); |
39 | 39 | $this->addOption( 'ORDER BY', 'cuc_timestamp DESC' ); |
40 | | - $this->addWhere( "cuc_timestamp > $time" ); |
| 40 | + $this->addWhere( "cuc_timestamp > " . $db->addQuotes( $time ) ); |
41 | 41 | |
42 | 42 | switch ( $request ) { |
43 | 43 | case 'userips': |
— | — | @@ -54,7 +54,7 @@ |
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; |
| 58 | + //$xff = $row->cuc_xff; |
59 | 59 | |
60 | 60 | if ( !isset( $ips[$ip] ) ) { |
61 | 61 | $ips[$ip]['end'] = $timestamp; |
— | — | @@ -85,7 +85,7 @@ |
86 | 86 | $this->addWhere( $cond ); |
87 | 87 | $log_type = array(); |
88 | 88 | if ( isset( $xff ) ) { |
89 | | - $log_type[] = 'ipeditsxff'; |
| 89 | + $log_type[] = 'ipedits-xff'; |
90 | 90 | } else { |
91 | 91 | $log_type[] = 'ipedits'; |
92 | 92 | } |