From: Michael Dale Date: Thu, 17 Sep 2009 19:33:31 +0000 (+0000) Subject: * minor fix to uploadFromChunks in case its initialized with a real path instead... X-Git-Tag: 1.31.0-rc.0~39665 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=8a8380a51744d24888d9b997fa8d3c9b4e85f084;p=lhc%2Fweb%2Fwiklou.git * minor fix to uploadFromChunks in case its initialized with a real path instead of a virtual path --- 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