Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -1997,11 +1997,16 @@ |
1998 | 1998 | * |
1999 | 1999 | * @param string $dir Full path to directory to create |
2000 | 2000 | * @param int $mode Chmod value to use, default is $wgDirectoryMode |
| 2001 | + * @param string $caller Optional caller param for debugging. |
2001 | 2002 | * @return bool |
2002 | 2003 | */ |
2003 | | -function wfMkdirParents( $dir, $mode = null ) { |
| 2004 | +function wfMkdirParents( $dir, $mode = null, $caller = null ) { |
2004 | 2005 | global $wgDirectoryMode; |
2005 | 2006 | |
| 2007 | + if ( !is_null( $caller ) ) { |
| 2008 | + wfDebug( "$caller: called wfMkdirParents($dir)" ); |
| 2009 | + } |
| 2010 | + |
2006 | 2011 | if( strval( $dir ) === '' || file_exists( $dir ) ) |
2007 | 2012 | return true; |
2008 | 2013 | |