checking for existence of mLocalFile in stashFile() was inverted
authorIan Baker <raindrift@users.mediawiki.org>
Mon, 15 Aug 2011 18:19:54 +0000 (18:19 +0000)
committerIan Baker <raindrift@users.mediawiki.org>
Mon, 15 Aug 2011 18:19:54 +0000 (18:19 +0000)
followup to r94536

includes/upload/UploadFromStash.php

index ce0bc8c..8ea9219 100644 (file)
@@ -103,7 +103,7 @@ class UploadFromStash extends UploadBase {
         * There is no need to stash the image twice
         */
        public function stashFile( $key = null ) {
-               if ( !$this->mLocalFile ) {
+               if ( $this->mLocalFile ) {
                        return $this->mLocalFile;
                }
                return parent::stashFile( $key );