From 46394d4551981b6ccd85fac0f8592f7bda469269 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Thu, 22 Jul 2010 22:00:27 +0000 Subject: [PATCH] Remove some unused globals --- includes/api/ApiDelete.php | 2 -- includes/api/ApiMain.php | 2 +- includes/api/ApiProtect.php | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/api/ApiDelete.php b/includes/api/ApiDelete.php index 6b3829fea8..f7a76d188a 100644 --- a/includes/api/ApiDelete.php +++ b/includes/api/ApiDelete.php @@ -47,8 +47,6 @@ class ApiDelete extends ApiBase { * result object. */ public function execute() { - global $wgUser; - $params = $this->extractRequestParams(); $this->requireOnlyOneParameter( $params, 'title', 'pageid' ); diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index 1418010df5..99a01b7d28 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -521,7 +521,7 @@ class ApiMain extends ApiBase { * @param $module object An Api module */ protected function checkExecutePermissions( $module ) { - global $wgUser, $wgGroupPermissions; + global $wgUser; if ( $module->isReadMode() && !in_array( 'read', User::getGroupPermissions( array( '*' ) ), true ) && !$wgUser->isAllowed( 'read' ) ) { diff --git a/includes/api/ApiProtect.php b/includes/api/ApiProtect.php index 24c3734714..9bd7824c80 100644 --- a/includes/api/ApiProtect.php +++ b/includes/api/ApiProtect.php @@ -37,7 +37,7 @@ class ApiProtect extends ApiBase { } public function execute() { - global $wgUser, $wgRestrictionTypes, $wgRestrictionLevels; + global $wgUser, $wgRestrictionLevels; $params = $this->extractRequestParams(); $titleObj = null; -- 2.20.1