X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryInfo.php;h=5294b1d8e78d3107bc4eaea672774349189ae096;hb=59636d1d0c95b2fb86ad93cfc3e25176e730e133;hp=bff19780f686f7ea5b9a8fb128f8f83322ef23f5;hpb=426719108b86bba70e5b321e3386f40849471426;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryInfo.php b/includes/api/ApiQueryInfo.php index bff19780f6..5294b1d8e7 100644 --- a/includes/api/ApiQueryInfo.php +++ b/includes/api/ApiQueryInfo.php @@ -1,9 +1,5 @@ @gmail.com" * * This program is free software; you can redistribute it and/or modify @@ -107,15 +103,15 @@ class ApiQueryInfo extends ApiQueryBase { } $this->tokenFunctions = [ - 'edit' => [ 'ApiQueryInfo', 'getEditToken' ], - 'delete' => [ 'ApiQueryInfo', 'getDeleteToken' ], - 'protect' => [ 'ApiQueryInfo', 'getProtectToken' ], - 'move' => [ 'ApiQueryInfo', 'getMoveToken' ], - 'block' => [ 'ApiQueryInfo', 'getBlockToken' ], - 'unblock' => [ 'ApiQueryInfo', 'getUnblockToken' ], - 'email' => [ 'ApiQueryInfo', 'getEmailToken' ], - 'import' => [ 'ApiQueryInfo', 'getImportToken' ], - 'watch' => [ 'ApiQueryInfo', 'getWatchToken' ], + 'edit' => [ self::class, 'getEditToken' ], + 'delete' => [ self::class, 'getDeleteToken' ], + 'protect' => [ self::class, 'getProtectToken' ], + 'move' => [ self::class, 'getMoveToken' ], + 'block' => [ self::class, 'getBlockToken' ], + 'unblock' => [ self::class, 'getUnblockToken' ], + 'email' => [ self::class, 'getEmailToken' ], + 'import' => [ self::class, 'getImportToken' ], + 'watch' => [ self::class, 'getWatchToken' ], ]; Hooks::run( 'APIQueryInfoTokens', [ &$this->tokenFunctions ] ); @@ -318,7 +314,7 @@ class ApiQueryInfo extends ApiQueryBase { $this->everything = $this->titles + $this->missing; $result = $this->getResult(); - uasort( $this->everything, [ 'Title', 'compare' ] ); + uasort( $this->everything, [ Title::class, 'compare' ] ); if ( !is_null( $this->params['continue'] ) ) { // Throw away any titles we're gonna skip so they don't // clutter queries