provided by extensions, in a similar way to $wgExtensionMessagesFiles
* Added $wgXMLMimeTypes, an array of XML mimetypes we can check for
with MimeMagic.
+* Added $wgDirectoryMode, which allows for setting the default CHMOD value when
+ creating new directories.
=== New features in 1.13 ===
/**
* Default value for chmoding of new directories.
*/
-$wgDefaultDirectoryChmod = 0777;
+$wgDirectoryMode = 0777;
/**
* New file storage paths; currently used only for deleted files.
* Make directory, and make all parent directories if they don't exist
*
* @param string $fullDir Full path to directory to create
- * @param int $mode Chmod value to use, default is $wgDefaultDirectoryChmod
+ * @param int $mode Chmod value to use, default is $wgDirectoryMode
* @return bool
*/
function wfMkdirParents( $fullDir, $mode = null ) {
- global $wgDefaultDirectoryChmod;
+ global $wgDirectoryMode;
if( strval( $fullDir ) === '' )
return true;
if( file_exists( $fullDir ) )
return true;
// If not defined or isn't an int, set to default
if ( !$mode || !is_int($mode) ) {
- $mode = $wgDefaultDirectoryChmod;
+ $mode = $wgDirectoryMode;
}