From 45b19bcd9893b44adbb63a16fb6e99d83d969116 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 25 Sep 2011 10:14:42 +0000 Subject: [PATCH] Follow-up r96958: forgot one use of $wgUser --- includes/specials/SpecialUploadStash.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/specials/SpecialUploadStash.php b/includes/specials/SpecialUploadStash.php index e72c81e9a8..9dd78efa3d 100644 --- a/includes/specials/SpecialUploadStash.php +++ b/includes/specials/SpecialUploadStash.php @@ -46,9 +46,7 @@ class SpecialUploadStash extends UnlistedSpecialPage { * @return Boolean: success */ public function execute( $subPage ) { - global $wgUser; - - if ( !$this->userCanExecute( $wgUser ) ) { + if ( !$this->userCanExecute( $this->getUser() ) ) { $this->displayRestrictionError(); return; } -- 2.20.1