Remove two unused $wgUsers.
authorChad Horohoe <demon@users.mediawiki.org>
Fri, 30 Jan 2009 22:03:23 +0000 (22:03 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Fri, 30 Jan 2009 22:03:23 +0000 (22:03 +0000)
includes/UploadBase.php
includes/UploadFromUrl.php

index 6f1fe6e..22da30e 100644 (file)
@@ -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.
                 */
index d41b0a8..1fb0f38 100644 (file)
@@ -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" );