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:
Timo Tijhof 2013-07-12 18:37:22 +02:00
parent 73f3e3192e
commit 114011bf95
2 changed files with 4 additions and 4 deletions

View file

@ -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'] );

View file

@ -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'] );