Only need one check for is_dir
It implicitly includes file_exists test. Change-Id: I25a6e609801455f2102d14035900248192e49f39
This commit is contained in:
parent
e7e3b69f47
commit
7d8f8ae84d
1 changed files with 1 additions and 1 deletions
|
|
@ -2558,7 +2558,7 @@ function wfMkdirParents( $dir, $mode = null, $caller = null ) {
|
|||
wfDebug( "$caller: called wfMkdirParents($dir)\n" );
|
||||
}
|
||||
|
||||
if ( strval( $dir ) === '' || ( file_exists( $dir ) && is_dir( $dir ) ) ) {
|
||||
if ( strval( $dir ) === '' || is_dir( $dir ) ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue