From: Chad Horohoe Date: Fri, 30 Jan 2009 22:03:23 +0000 (+0000) Subject: Remove two unused $wgUsers. X-Git-Tag: 1.31.0-rc.0~43115 X-Git-Url: http://git.cyclocoop.org/%27.%28%24current%20%3E%202?a=commitdiff_plain;h=fb64595f360785c66328a7ad7ccfd461d2372a20;p=lhc%2Fweb%2Fwiklou.git Remove two unused $wgUsers. --- diff --git a/includes/UploadBase.php b/includes/UploadBase.php index 6f1fe6e740..22da30ecd5 100644 --- a/includes/UploadBase.php +++ b/includes/UploadBase.php @@ -96,9 +96,7 @@ class UploadBase { * Verify whether the upload is sane. * Returns self::OK or else an array with error information */ - function verifyUpload() { - global $wgUser; - + function verifyUpload() { /** * If there was no filename or a zero size given, give up quick. */ diff --git a/includes/UploadFromUrl.php b/includes/UploadFromUrl.php index d41b0a8f2d..1fb0f383c5 100644 --- a/includes/UploadFromUrl.php +++ b/includes/UploadFromUrl.php @@ -45,7 +45,7 @@ class UploadFromUrl extends UploadBase { * Returns true if there was an error, false otherwise */ private function curlCopy() { - global $wgUser, $wgOut; + global $wgOut; # Open temporary file $this->mCurlDestHandle = @fopen( $this->mTempPath, "wb" );