Merge "Only need one check for is_dir"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sun, 12 Apr 2015 18:29:36 +0000 (18:29 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 12 Apr 2015 18:29:36 +0000 (18:29 +0000)
includes/GlobalFunctions.php

index 9e81a3c..3931be3 100644 (file)
@@ -2521,7 +2521,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;
        }