Fix regression -- wfMkdirParents() started whining if target directory existed, instead of just giving the thumbs-up

This commit is contained in:
Brion Vibber 2007-06-27 20:51:41 +00:00
parent 7ad7cab40f
commit b3813f456a

View file

@ -1665,6 +1665,8 @@ function wfTempDir() {
function wfMkdirParents( $fullDir, $mode = 0777 ) {
if( strval( $fullDir ) === '' )
return true;
if( file_exists( $fullDir ) )
return true;
return mkdir( $fullDir, $mode, true );
}