Pass a user when creating a new ParserOptions

Bug: T246861
Change-Id: Idaed22f2b4c1a43be97b48a7718cb5a35a58edd1
This commit is contained in:
DannyS712 2020-03-04 04:57:20 +00:00
parent e2489406e4
commit 0dca373c62

View file

@ -421,7 +421,7 @@ class ApiVisualEditor extends ApiBase {
$notices[] = MediaWikiServices::getInstance()->getParser()->parse(
'<div class="mw-editintro">{{:' . $eiTitle->getFullText() . '}}</div>',
$title,
new ParserOptions()
new ParserOptions( $user )
)->getText();
}
}