r23492 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23491‎ | r23492 | r23493 >
Date:20:51, 27 June 2007
Author:brion
Status:old
Tags:
Comment:
Fix regression -- wfMkdirParents() started whining if target directory existed, instead of just giving the thumbs-up
Modified paths:
  • /trunk/phase3/includes/GlobalFunctions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/GlobalFunctions.php
@@ -1665,6 +1665,8 @@
16661666 function wfMkdirParents( $fullDir, $mode = 0777 ) {
16671667 if( strval( $fullDir ) === '' )
16681668 return true;
 1669+ if( file_exists( $fullDir ) )
 1670+ return true;
16691671 return mkdir( $fullDir, $mode, true );
16701672 }
16711673

Follow-up revisions

RevisionCommit summaryAuthorDate
r23581Merged revisions 23406-23580 via svnmerge from...david04:50, 30 June 2007

Status & tagging log