From b3813f456ae59456f42b509ab1aa263e3edddee8 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 27 Jun 2007 20:51:41 +0000 Subject: [PATCH] Fix regression -- wfMkdirParents() started whining if target directory existed, instead of just giving the thumbs-up --- includes/GlobalFunctions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index d1aac27c8d..a3a7657242 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -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 ); } -- 2.20.1