From 7d8f8ae84df1da8bd62cb908d90346abb4ac3686 Mon Sep 17 00:00:00 2001 From: Elliott Eggleston Date: Mon, 2 Mar 2015 10:25:25 -0800 Subject: [PATCH] Only need one check for is_dir It implicitly includes file_exists test. Change-Id: I25a6e609801455f2102d14035900248192e49f39 --- includes/GlobalFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 5232413fdd..73774334c9 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -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; } -- 2.20.1