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:
7ad7cab
)
Fix regression -- wfMkdirParents() started whining if target directory existed, inste...
author
Brion Vibber
<brion@users.mediawiki.org>
Wed, 27 Jun 2007 20:51:41 +0000
(20:51 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Wed, 27 Jun 2007 20:51:41 +0000
(20:51 +0000)
includes/GlobalFunctions.php
patch
|
blob
|
history
diff --git
a/includes/GlobalFunctions.php
b/includes/GlobalFunctions.php
index
d1aac27
..
a3a7657
100644
(file)
--- a/
includes/GlobalFunctions.php
+++ b/
includes/GlobalFunctions.php
@@
-1665,6
+1665,8
@@
function wfTempDir() {
function wfMkdirParents( $fullDir, $mode = 0777 ) {
if( strval( $fullDir ) === '' )
return true;
+ if( file_exists( $fullDir ) )
+ return true;
return mkdir( $fullDir, $mode, true );
}