No more icky mkdir() calls. Grepping for mkdir() now returns nothing :)
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 4 Sep 2008 04:15:27 +0000 (04:15 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 4 Sep 2008 04:15:27 +0000 (04:15 +0000)
includes/HTMLFileCache.php

index ba2196e..ae797fb 100644 (file)
@@ -114,8 +114,8 @@ class HTMLFileCache {
                $mydir2=substr($filename,0,strrpos($filename,'/')); # subdirectory level 2
                $mydir1=substr($mydir2,0,strrpos($mydir2,'/')); # subdirectory level 1
 
-               if(!file_exists($mydir1)) { mkdir($mydir1,0775); } # create if necessary
-               if(!file_exists($mydir2)) { mkdir($mydir2,0775); }
+               wfMkdirParents( $mydir1 );
+               wfMkdirParents( $mydir2 );
        }
 
        function saveToFileCache( $origtext ) {