From 2033b1fce5d895dca21d80326272faae236fc04c Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Fri, 21 Nov 2008 11:34:09 +0000 Subject: [PATCH] Replace mkdir() in favor of wfMkdirParents(): * It handles directory modes for us (rather than hardcode 0777) * It handles recursion for us --- maintenance/cleanupImages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/cleanupImages.php b/maintenance/cleanupImages.php index 69333fefa8..b976ba80cf 100644 --- 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; -- 2.20.1