X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fstorage%2FtestCompression.php;h=fa5364dfce42cd2861f4aad54b1da69f83973919;hb=03293f1f693d9acb4c6b00a50fedfcaac4b51a91;hp=c3ed4fce0c104a7e83ca53bedd958c9e2b98fcaa;hpb=7babd362babcbf7f20adb8e12edb4f4bc1d4249f;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/storage/testCompression.php b/maintenance/storage/testCompression.php index c3ed4fce0c..fa5364dfce 100644 --- a/maintenance/storage/testCompression.php +++ b/maintenance/storage/testCompression.php @@ -45,10 +45,10 @@ if ( isset( $options['limit'] ) ) { $limit = 1000; $untilHappy = true; } -$type = isset( $options['type'] ) ? $options['type'] : ConcatenatedGzipHistoryBlob::class; +$type = $options['type'] ?? ConcatenatedGzipHistoryBlob::class; -$dbr = $this->getDB( DB_REPLICA ); -$revQuery = Revision::getQueryInfo( [ 'page', 'text' ] ); +$dbr = wfGetDB( DB_REPLICA ); +$revQuery = Revision::getQueryInfo( [ 'page' ] ); $res = $dbr->select( $revQuery['tables'], $revQuery['fields'],