From: Alexandre Emsenhuber Date: Sun, 25 Sep 2011 10:14:42 +0000 (+0000) Subject: Follow-up r96958: forgot one use of $wgUser X-Git-Tag: 1.31.0-rc.0~27429 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=45b19bcd9893b44adbb63a16fb6e99d83d969116;p=lhc%2Fweb%2Fwiklou.git Follow-up r96958: forgot one use of $wgUser --- 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; }