mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 09:09:25 +00:00
Merge "Make {{PAGENAME}} in edit notices work by setting $wgTitle"
This commit is contained in:
commit
a8a26ee7a3
|
@ -173,6 +173,9 @@ class ApiVisualEditor extends ApiBase {
|
|||
|
||||
if ( $params['paction'] === 'parse' ) {
|
||||
$parsed = $this->getHTML( $page, $parserParams );
|
||||
// Dirty hack to provide the correct context for edit notices
|
||||
global $wgTitle; // FIXME NOOOOOOOOES
|
||||
$wgTitle = $page;
|
||||
$notices = $page->getEditNotices();
|
||||
if ( count( $wgVisualEditorEditNotices ) ) {
|
||||
foreach ( $wgVisualEditorEditNotices as $key ) {
|
||||
|
|
Loading…
Reference in a new issue