dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
063c8fc
)
No more icky mkdir() calls. Grepping for mkdir() now returns nothing :)
author
Chad Horohoe
<demon@users.mediawiki.org>
Thu, 4 Sep 2008 04:15:27 +0000
(
04:15
+0000)
committer
Chad Horohoe
<demon@users.mediawiki.org>
Thu, 4 Sep 2008 04:15:27 +0000
(
04:15
+0000)
includes/HTMLFileCache.php
patch
|
blob
|
history
diff --git
a/includes/HTMLFileCache.php
b/includes/HTMLFileCache.php
index
ba2196e
..
ae797fb
100644
(file)
--- a/
includes/HTMLFileCache.php
+++ b/
includes/HTMLFileCache.php
@@
-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 ) {