Index: trunk/phase3/includes/api/ApiProtect.php |
— | — | @@ -37,7 +37,7 @@ |
38 | 38 | } |
39 | 39 | |
40 | 40 | public function execute() { |
41 | | - global $wgUser, $wgRestrictionTypes, $wgRestrictionLevels; |
| 41 | + global $wgUser, $wgRestrictionLevels; |
42 | 42 | $params = $this->extractRequestParams(); |
43 | 43 | |
44 | 44 | $titleObj = null; |
Index: trunk/phase3/includes/api/ApiDelete.php |
— | — | @@ -47,8 +47,6 @@ |
48 | 48 | * result object. |
49 | 49 | */ |
50 | 50 | public function execute() { |
51 | | - global $wgUser; |
52 | | - |
53 | 51 | $params = $this->extractRequestParams(); |
54 | 52 | |
55 | 53 | $this->requireOnlyOneParameter( $params, 'title', 'pageid' ); |
Index: trunk/phase3/includes/api/ApiMain.php |
— | — | @@ -521,7 +521,7 @@ |
522 | 522 | * @param $module object An Api module |
523 | 523 | */ |
524 | 524 | protected function checkExecutePermissions( $module ) { |
525 | | - global $wgUser, $wgGroupPermissions; |
| 525 | + global $wgUser; |
526 | 526 | if ( $module->isReadMode() && !in_array( 'read', User::getGroupPermissions( array( '*' ) ), true ) && |
527 | 527 | !$wgUser->isAllowed( 'read' ) ) |
528 | 528 | { |