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:
c155fd4
)
Replace mkdir() in favor of wfMkdirParents():
author
Chad Horohoe
<demon@users.mediawiki.org>
Fri, 21 Nov 2008 11:34:09 +0000
(11:34 +0000)
committer
Chad Horohoe
<demon@users.mediawiki.org>
Fri, 21 Nov 2008 11:34:09 +0000
(11:34 +0000)
* It handles directory modes for us (rather than hardcode 0777)
* It handles recursion for us
maintenance/cleanupImages.php
patch
|
blob
|
history
diff --git
a/maintenance/cleanupImages.php
b/maintenance/cleanupImages.php
index
69333fe
..
b976ba8
100644
(file)
--- a/
maintenance/cleanupImages.php
+++ b/
maintenance/cleanupImages.php
@@
-144,7
+144,7
@@
class ImageCleanup extends TableCleanup {
__METHOD__ );
$dir = dirname( $finalPath );
if( !file_exists( $dir ) ) {
- if( !
mkdir( $dir, 0777, true
) ) {
+ if( !
wfMkdirParents( $dir
) ) {
$this->log( "RENAME FAILED, COULD NOT CREATE $dir" );
$db->rollback();
return;