* minor fix to uploadFromChunks in case its initialized with a real path instead...
authorMichael Dale <dale@users.mediawiki.org>
Thu, 17 Sep 2009 19:33:31 +0000 (19:33 +0000)
committerMichael Dale <dale@users.mediawiki.org>
Thu, 17 Sep 2009 19:33:31 +0000 (19:33 +0000)
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