From 8a8380a51744d24888d9b997fa8d3c9b4e85f084 Mon Sep 17 00:00:00 2001 From: Michael Dale Date: Thu, 17 Sep 2009 19:33:31 +0000 Subject: [PATCH] * minor fix to uploadFromChunks in case its initialized with a real path instead of a virtual path --- includes/upload/UploadFromChunks.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/includes/upload/UploadFromChunks.php b/includes/upload/UploadFromChunks.php index 478b8f52d5..fa7f4ab7bd 100644 --- a/includes/upload/UploadFromChunks.php +++ b/includes/upload/UploadFromChunks.php @@ -105,12 +105,17 @@ class UploadFromChunks extends UploadBase { return true; } } - + /* + * getRealPath + * @param string $srcPath the source path + * @returns the real path if it was a virtual url + */ function getRealPath( $srcPath ){ $repo = RepoGroup::singleton()->getLocalRepo(); if ( $repo->isVirtualUrl( $srcPath ) ) { return $repo->resolveVirtualUrl( $srcPath ); } + return $srcPath; } // pretty ugly inter-mixing of mParam and local vars -- 2.20.1