Replace uses of Revision constants

Bug: T257010
Change-Id: I20c7737d0d00b3f47c2781c1c968db6a74a68ad3
This commit is contained in:
DannyS712 2020-07-03 00:40:27 +00:00
parent 1eeab91220
commit 5fb5bc3060

View file

@ -11,6 +11,7 @@
use MediaWiki\Block\DatabaseBlock;
use MediaWiki\Logger\LoggerFactory;
use MediaWiki\MediaWikiServices;
use MediaWiki\Revision\RevisionRecord;
class ApiVisualEditor extends ApiBase {
@ -91,7 +92,7 @@ class ApiVisualEditor extends ApiBase {
$preloadPage = WikiPage::factory( $preloadTitle );
}
$content = $preloadPage->getContent( Revision::RAW );
$content = $preloadPage->getContent( RevisionRecord::RAW );
$parserOptions = ParserOptions::newFromUser( $this->getUser() );
$content = $content->preloadTransform(