mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 06:24:08 +00:00
API: Remove loading of unused globals
* non-edit doesn't use $wgVisualEditorUseChangeTagging. * edit doesn't use $wgVisualEditorEditNotices. Change-Id: I4ebbf855ca92ca1541013ce68a58e019b405137f
This commit is contained in:
parent
73f3e3192e
commit
114011bf95
|
@ -194,8 +194,8 @@ class ApiVisualEditor extends ApiBase {
|
|||
}
|
||||
|
||||
public function execute() {
|
||||
global $wgVisualEditorNamespaces, $wgVisualEditorUseChangeTagging,
|
||||
$wgVisualEditorEditNotices;
|
||||
global $wgVisualEditorNamespaces, $wgVisualEditorEditNotices;
|
||||
|
||||
$user = $this->getUser();
|
||||
$params = $this->extractRequestParams();
|
||||
$page = Title::newFromText( $params['page'] );
|
||||
|
|
|
@ -51,8 +51,8 @@ class ApiVisualEditorEdit extends ApiVisualEditor {
|
|||
}
|
||||
|
||||
public function execute() {
|
||||
global $wgVisualEditorNamespaces, $wgVisualEditorUseChangeTagging,
|
||||
$wgVisualEditorEditNotices;
|
||||
global $wgVisualEditorNamespaces, $wgVisualEditorUseChangeTagging;
|
||||
|
||||
$user = $this->getUser();
|
||||
$params = $this->extractRequestParams();
|
||||
$page = Title::newFromText( $params['page'] );
|
||||
|
|
Loading…
Reference in a new issue