mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 09:09:25 +00:00
Merge "Replace uses of Revision constants"
This commit is contained in:
commit
e358865765
|
@ -11,6 +11,7 @@
|
||||||
use MediaWiki\Block\DatabaseBlock;
|
use MediaWiki\Block\DatabaseBlock;
|
||||||
use MediaWiki\Logger\LoggerFactory;
|
use MediaWiki\Logger\LoggerFactory;
|
||||||
use MediaWiki\MediaWikiServices;
|
use MediaWiki\MediaWikiServices;
|
||||||
|
use MediaWiki\Revision\RevisionRecord;
|
||||||
|
|
||||||
class ApiVisualEditor extends ApiBase {
|
class ApiVisualEditor extends ApiBase {
|
||||||
|
|
||||||
|
@ -91,7 +92,7 @@ class ApiVisualEditor extends ApiBase {
|
||||||
$preloadPage = WikiPage::factory( $preloadTitle );
|
$preloadPage = WikiPage::factory( $preloadTitle );
|
||||||
}
|
}
|
||||||
|
|
||||||
$content = $preloadPage->getContent( Revision::RAW );
|
$content = $preloadPage->getContent( RevisionRecord::RAW );
|
||||||
$parserOptions = ParserOptions::newFromUser( $this->getUser() );
|
$parserOptions = ParserOptions::newFromUser( $this->getUser() );
|
||||||
|
|
||||||
$content = $content->preloadTransform(
|
$content = $content->preloadTransform(
|
||||||
|
|
Loading…
Reference in a new issue