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:
d489407
)
Skip PHP warnings for mkdir() call. We throw our own and having essentially duplicate...
author
Chad Horohoe
<demon@users.mediawiki.org>
Sun, 20 Jun 2010 15:41:38 +0000
(15:41 +0000)
committer
Chad Horohoe
<demon@users.mediawiki.org>
Sun, 20 Jun 2010 15:41:38 +0000
(15:41 +0000)
includes/GlobalFunctions.php
patch
|
blob
|
history
diff --git
a/includes/GlobalFunctions.php
b/includes/GlobalFunctions.php
index
a7d6cc2
..
c475a82
100644
(file)
--- a/
includes/GlobalFunctions.php
+++ b/
includes/GlobalFunctions.php
@@
-2144,7
+2144,11
@@
function wfMkdirParents( $dir, $mode = null, $caller = null ) {
if ( is_null( $mode ) )
$mode = $wgDirectoryMode;
+ // Turn off the normal warning, we're doing our own below
+ wfSuppressWarnings();
$ok = mkdir( $dir, $mode, true ); // PHP5 <3
+ wfRestoreWarnings();
+
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 );