X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryFilearchive.php;h=8e464d01950b97c73d32ee8a413409cd602e904a;hb=8963110d01b0f376d900171fe7506fed5df80cf8;hp=ebffb151c89ac6f1b8bdbe76db40354a7feca3e7;hpb=12ff4dec05ff8bb1a1910bf6745155b93e1912b5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryFilearchive.php b/includes/api/ApiQueryFilearchive.php index ebffb151c8..8e464d0195 100644 --- a/includes/api/ApiQueryFilearchive.php +++ b/includes/api/ApiQueryFilearchive.php @@ -24,6 +24,8 @@ * @file */ +use MediaWiki\Revision\RevisionRecord; + /** * Query module to enumerate all deleted files. * @@ -153,7 +155,7 @@ class ApiQueryFilearchive extends ApiQueryBase { self::addTitleInfo( $file, $title ); if ( $fld_description && - Revision::userCanBitfield( $row->fa_deleted, File::DELETED_COMMENT, $user ) + RevisionRecord::userCanBitfield( $row->fa_deleted, File::DELETED_COMMENT, $user ) ) { $file['description'] = $commentStore->getComment( 'fa_description', $row )->text; if ( isset( $prop['parseddescription'] ) ) { @@ -162,7 +164,7 @@ class ApiQueryFilearchive extends ApiQueryBase { } } if ( $fld_user && - Revision::userCanBitfield( $row->fa_deleted, File::DELETED_USER, $user ) + RevisionRecord::userCanBitfield( $row->fa_deleted, File::DELETED_USER, $user ) ) { $file['userid'] = (int)$row->fa_user; $file['user'] = $row->fa_user_text;