Index: branches/wmf-deployment/includes/GlobalFunctions.php |
— | — | @@ -2069,7 +2069,12 @@ |
2070 | 2070 | if ( is_null( $mode ) ) |
2071 | 2071 | $mode = $wgDirectoryMode; |
2072 | 2072 | |
2073 | | - return mkdir( $dir, $mode, true ); // PHP5 <3 |
| 2073 | + $ok = mkdir( $dir, $mode, true ); // PHP5 <3 |
| 2074 | + if( !$ok ) { |
| 2075 | + // PHP doesn't report the path in its warning message, so add our own to aid in diagnosis. |
| 2076 | + trigger_error( __FUNCTION__ . ": failed to mkdir \"$dir\" mode $mode", E_USER_WARNING ); |
| 2077 | + } |
| 2078 | + return $ok; |
2074 | 2079 | } |
2075 | 2080 | |
2076 | 2081 | /** |