UploadFromStash::stashSession returned an object instead of a file key, which broke...
authorIan Baker <raindrift@users.mediawiki.org>
Fri, 26 Aug 2011 23:17:43 +0000 (23:17 +0000)
committerIan Baker <raindrift@users.mediawiki.org>
Fri, 26 Aug 2011 23:17:43 +0000 (23:17 +0000)
Fixes bug 30505

includes/upload/UploadFromStash.php

index 8cb22ce..62c6723 100644 (file)
@@ -115,10 +115,10 @@ class UploadFromStash extends UploadBase {
        }
 
        /**
-        * Alias for stashFile
+        * This should return the key instead of the UploadStashFile instance, for backward compatibility.
         */
        public function stashSession() {
-               return $this->stashFile();
+               return $this->stashFile()->getFileKey();
        }
 
        /**