mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-01 01:16:30 +00:00
Set context title when rendering edit notices and checkboxes
Bug: 59608 Bug: 63600 Change-Id: Ia2fdb3b3d383415feaf122d235d0c9a9e0ba0900
This commit is contained in:
parent
f28f5e3996
commit
ddb8d826e3
|
@ -315,6 +315,7 @@ class ApiVisualEditor extends ApiBase {
|
|||
// Dirty hack to provide the correct context for edit notices
|
||||
global $wgTitle; // FIXME NOOOOOOOOES
|
||||
$wgTitle = $page;
|
||||
RequestContext::getMain()->setTitle( $page );
|
||||
$notices = $page->getEditNotices();
|
||||
if ( $user->isAnon() ) {
|
||||
$notices[] = $this->msg( 'anoneditwarning' )->parseAsBlock();
|
||||
|
|
Loading…
Reference in a new issue