dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9be530
)
* minor fix to uploadFromChunks in case its initialized with a real path instead...
author
Michael Dale
<dale@users.mediawiki.org>
Thu, 17 Sep 2009 19:33:31 +0000
(19:33 +0000)
committer
Michael Dale
<dale@users.mediawiki.org>
Thu, 17 Sep 2009 19:33:31 +0000
(19:33 +0000)
includes/upload/UploadFromChunks.php
patch
|
blob
|
history
diff --git
a/includes/upload/UploadFromChunks.php
b/includes/upload/UploadFromChunks.php
index
478b8f5
..
fa7f4ab
100644
(file)
--- 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