mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-24 18:58:42 +00:00
Pass a user when creating a new ParserOptions
Bug: T246861 Change-Id: Idaed22f2b4c1a43be97b48a7718cb5a35a58edd1
This commit is contained in:
parent
e2489406e4
commit
0dca373c62
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue