* minor fix to uploadFromChunks in case its initialized with a real path instead...
[lhc/web/wiklou.git] / includes / upload / UploadFromChunks.php
index 478b8f5..fa7f4ab 100644 (file)
@@ -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