mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 09:09:25 +00:00
Replace uses of Revision constants
Bug: T257010 Change-Id: I20c7737d0d00b3f47c2781c1c968db6a74a68ad3
This commit is contained in:
parent
1eeab91220
commit
5fb5bc3060
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue