Removed the ability to pass a key into stashFile(), which simplifies the stash row...
[lhc/web/wiklou.git] / includes / upload / UploadFromStash.php
index ce0bc8c..a2f9be5 100644 (file)
@@ -102,18 +102,18 @@ class UploadFromStash extends UploadBase {
        /**
         * There is no need to stash the image twice
         */
-       public function stashFile( $key = null ) {
-               if ( !$this->mLocalFile ) {
+       public function stashFile() {
+               if ( $this->mLocalFile ) {
                        return $this->mLocalFile;
                }
-               return parent::stashFile( $key );
+               return parent::stashFile();
        }
 
        /**
         * Alias for stashFile
         */
-       public function stashSession( $key = null ) {
-               return $this->stashFile( $key );
+       public function stashSession() {
+               return $this->stashFile();
        }
 
        /**