Index: trunk/extensions/CheckUser/api/ApiQueryCheckUser.php |
— | — | @@ -13,7 +13,9 @@ |
14 | 14 | |
15 | 15 | $db = $this->getDB( DB_SLAVE ); |
16 | 16 | $params = $this->extractRequestParams(); |
17 | | - extract( $params ); |
| 17 | + |
| 18 | + list( $request, $target, $reason, $timecond, $limit, $xff ) = array( $params['request'], |
| 19 | + $params['target'], $params['reason'], $params['timecond'], $params['limit'], $params['xff'] ); |
18 | 20 | |
19 | 21 | if ( !$wgUser->isAllowed( 'checkuser' ) ) { |
20 | 22 | $this->dieUsage( 'You need the checkuser right', 'permissionerror' ); |
Index: trunk/extensions/CheckUser/api/ApiQueryCheckUserLog.php |
— | — | @@ -16,8 +16,9 @@ |
17 | 17 | if ( !$wgUser->isAllowed( 'checkuser-log' ) ) { |
18 | 18 | $this->dieUsage( 'You need the checkuser-log right', 'permissionerror' ); |
19 | 19 | } |
20 | | - |
21 | | - extract( $params ); |
| 20 | + |
| 21 | + list( $user, $limit, $target, $from, $to ) = array( $params['user'], $params['limit'], |
| 22 | + $params['target'], $params['from'], $params['to'] ); |
22 | 23 | |
23 | 24 | $this->addTables( 'cu_log' ); |
24 | 25 | $this->addOption( 'LIMIT', $limit + 1 ); |