Resolving virtual url of temp path for stashed files, unbreaking stashed uploads.
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Thu, 17 Sep 2009 19:27:19 +0000 (19:27 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Thu, 17 Sep 2009 19:27:19 +0000 (19:27 +0000)
includes/upload/UploadFromStash.php

index cd1d859..43ef2a3 100644 (file)
@@ -34,8 +34,10 @@ class UploadFromStash extends UploadBase {
                         * them in the session on the server and just give
                         * an opaque key to the user agent.
                         */
+                        
+                       $repo = RepoGroup::singleton()->getLocalRepo();
                        parent::initialize( $name,
-                               $sessionData['mTempPath'],
+                               $repo->resolveVirtualUrl( $sessionData['mTempPath'] ),
                                $sessionData['mFileSize'],
                                false
                        );