Follow-up r96958: forgot one use of $wgUser
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 25 Sep 2011 10:14:42 +0000 (10:14 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 25 Sep 2011 10:14:42 +0000 (10:14 +0000)
includes/specials/SpecialUploadStash.php

index e72c81e..9dd78ef 100644 (file)
@@ -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;
                }