Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -1665,6 +1665,8 @@ |
1666 | 1666 | function wfMkdirParents( $fullDir, $mode = 0777 ) { |
1667 | 1667 | if( strval( $fullDir ) === '' ) |
1668 | 1668 | return true; |
| 1669 | + if( file_exists( $fullDir ) ) |
| 1670 | + return true; |
1669 | 1671 | return mkdir( $fullDir, $mode, true ); |
1670 | 1672 | } |
1671 | 1673 | |