Index: trunk/phase3/includes/HTMLFileCache.php |
— | — | @@ -114,8 +114,8 @@ |
115 | 115 | $mydir2=substr($filename,0,strrpos($filename,'/')); # subdirectory level 2 |
116 | 116 | $mydir1=substr($mydir2,0,strrpos($mydir2,'/')); # subdirectory level 1 |
117 | 117 | |
118 | | - if(!file_exists($mydir1)) { mkdir($mydir1,0775); } # create if necessary |
119 | | - if(!file_exists($mydir2)) { mkdir($mydir2,0775); } |
| 118 | + wfMkdirParents( $mydir1 ); |
| 119 | + wfMkdirParents( $mydir2 ); |
120 | 120 | } |
121 | 121 | |
122 | 122 | function saveToFileCache( $origtext ) { |