Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -1771,18 +1771,18 @@ |
1772 | 1772 | * Make directory, and make all parent directories if they don't exist |
1773 | 1773 | * |
1774 | 1774 | * @param string $fullDir Full path to directory to create |
1775 | | - * @param int $mode Chmod value to use, default is $wgDefaultDirectoryChmod |
| 1775 | + * @param int $mode Chmod value to use, default is $wgDirectoryMode |
1776 | 1776 | * @return bool |
1777 | 1777 | */ |
1778 | 1778 | function wfMkdirParents( $fullDir, $mode = null ) { |
1779 | | - global $wgDefaultDirectoryChmod; |
| 1779 | + global $wgDirectoryMode; |
1780 | 1780 | if( strval( $fullDir ) === '' ) |
1781 | 1781 | return true; |
1782 | 1782 | if( file_exists( $fullDir ) ) |
1783 | 1783 | return true; |
1784 | 1784 | // If not defined or isn't an int, set to default |
1785 | 1785 | if ( !$mode || !is_int($mode) ) { |
1786 | | - $mode = $wgDefaultDirectoryChmod; |
| 1786 | + $mode = $wgDirectoryMode; |
1787 | 1787 | } |
1788 | 1788 | |
1789 | 1789 | |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -165,7 +165,7 @@ |
166 | 166 | /** |
167 | 167 | * Default value for chmoding of new directories. |
168 | 168 | */ |
169 | | -$wgDefaultDirectoryChmod = 0777; |
| 169 | +$wgDirectoryMode = 0777; |
170 | 170 | |
171 | 171 | /** |
172 | 172 | * New file storage paths; currently used only for deleted files. |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -66,6 +66,8 @@ |
67 | 67 | provided by extensions, in a similar way to $wgExtensionMessagesFiles |
68 | 68 | * Added $wgXMLMimeTypes, an array of XML mimetypes we can check for |
69 | 69 | with MimeMagic. |
| 70 | +* Added $wgDirectoryMode, which allows for setting the default CHMOD value when |
| 71 | + creating new directories. |
70 | 72 | |
71 | 73 | === New features in 1.13 === |
72 | 74 | |