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:
c3c2487
)
Merge r53381 from wmf-deployment. Throw more informational error on creation failure.
author
Chad Horohoe
<demon@users.mediawiki.org>
Sat, 22 Aug 2009 16:50:03 +0000
(16:50 +0000)
committer
Chad Horohoe
<demon@users.mediawiki.org>
Sat, 22 Aug 2009 16:50:03 +0000
(16:50 +0000)
includes/GlobalFunctions.php
patch
|
blob
|
history
diff --git
a/includes/GlobalFunctions.php
b/includes/GlobalFunctions.php
index
580b510
..
dcf8e8d
100644
(file)
--- a/
includes/GlobalFunctions.php
+++ b/
includes/GlobalFunctions.php
@@
-2074,7
+2074,12
@@
function wfMkdirParents( $dir, $mode = null, $caller = null ) {
if ( is_null( $mode ) )
$mode = $wgDirectoryMode;
- return mkdir( $dir, $mode, true ); // PHP5 <3
+ $ok = mkdir( $dir, $mode, true ); // PHP5 <3
+ if( !$ok ) {
+ // PHP doesn't report the path in its warning message, so add our own to aid in diagnosis.
+ trigger_error( __FUNCTION__ . ": failed to mkdir \"$dir\" mode $mode", E_USER_WARNING );
+ }
+ return $ok;
}
/**