* @file
*/
+use MediaWiki\Revision\RevisionRecord;
+
/**
* Query module to enumerate all deleted files.
*
$user = $this->getUser();
$db = $this->getDB();
- $commentStore = new CommentStore( 'fa_description' );
+ $commentStore = CommentStore::getStore();
$params = $this->extractRequestParams();
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( $row )->text;
+ $file['description'] = $commentStore->getComment( 'fa_description', $row )->text;
if ( isset( $prop['parseddescription'] ) ) {
$file['parseddescription'] = Linker::formatComment(
$file['description'], $title );
}
}
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;