From: Bryan Tong Minh Date: Thu, 17 Sep 2009 19:27:19 +0000 (+0000) Subject: Resolving virtual url of temp path for stashed files, unbreaking stashed uploads. X-Git-Tag: 1.31.0-rc.0~39666 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=f9be530221b055315f4c5b7e1c65ad60550ebd56;p=lhc%2Fweb%2Fwiklou.git Resolving virtual url of temp path for stashed files, unbreaking stashed uploads. --- 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 );