Only need one check for is_dir

It implicitly includes file_exists test.

Change-Id: I25a6e609801455f2102d14035900248192e49f39
This commit is contained in:
Elliott Eggleston 2015-03-02 10:25:25 -08:00 committed by Ejegg
parent e7e3b69f47
commit 7d8f8ae84d

View file

@ -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;
}