Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -2074,7 +2074,12 @@ |
2075 | 2075 | if ( is_null( $mode ) ) |
2076 | 2076 | $mode = $wgDirectoryMode; |
2077 | 2077 | |
2078 | | - return mkdir( $dir, $mode, true ); // PHP5 <3 |
| 2078 | + $ok = mkdir( $dir, $mode, true ); // PHP5 <3 |
| 2079 | + if( !$ok ) { |
| 2080 | + // PHP doesn't report the path in its warning message, so add our own to aid in diagnosis. |
| 2081 | + trigger_error( __FUNCTION__ . ": failed to mkdir \"$dir\" mode $mode", E_USER_WARNING ); |
| 2082 | + } |
| 2083 | + return $ok; |
2079 | 2084 | } |
2080 | 2085 | |
2081 | 2086 | /** |
Property changes on: trunk/phase3/includes |
___________________________________________________________________ |
Name: svn:mergeinfo |
2082 | 2087 | + /branches/REL1_15/phase3/includes:51646 |
/branches/wmf-deployment/includes:53381 |