$wgDefaultDirectoryChmod -> $wgDirectoryMode. Less crappy name + docs I should've...
authorChad Horohoe <demon@users.mediawiki.org>
Fri, 18 Jul 2008 18:03:50 +0000 (18:03 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Fri, 18 Jul 2008 18:03:50 +0000 (18:03 +0000)
RELEASE-NOTES
includes/DefaultSettings.php
includes/GlobalFunctions.php

index 420e5ba..65e60df 100644 (file)
@@ -66,6 +66,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   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 ===
 
index eb60744..72e115a 100644 (file)
@@ -165,7 +165,7 @@ $wgUploadBaseUrl    = "";
 /**
  * Default value for chmoding of new directories.
  */
-$wgDefaultDirectoryChmod = 0777;
+$wgDirectoryMode = 0777;
 
 /**
  * New file storage paths; currently used only for deleted files.
index 382c101..86bbdc6 100644 (file)
@@ -1771,18 +1771,18 @@ function wfTempDir() {
  * 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;
        }