From f9be530221b055315f4c5b7e1c65ad60550ebd56 Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Thu, 17 Sep 2009 19:27:19 +0000 Subject: [PATCH] Resolving virtual url of temp path for stashed files, unbreaking stashed uploads. --- includes/upload/UploadFromStash.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/upload/UploadFromStash.php b/includes/upload/UploadFromStash.php index cd1d859b53..43ef2a34c7 100644 --- a/includes/upload/UploadFromStash.php +++ b/includes/upload/UploadFromStash.php @@ -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 ); -- 2.20.1