Index: trunk/phase3/includes/MessageCache.php |
— | — | @@ -110,7 +110,7 @@ |
111 | 111 | global $wgLocalMessageCache; |
112 | 112 | |
113 | 113 | $filename = "$wgLocalMessageCache/messages-" . wfWikiID() . "-$code"; |
114 | | - wfMkdirParents( $wgLocalMessageCache, 0777 ); // might fail |
| 114 | + wfMkdirParents( $wgLocalMessageCache ); // might fail |
115 | 115 | |
116 | 116 | wfSuppressWarnings(); |
117 | 117 | $file = fopen( $filename, 'w' ); |
— | — | @@ -131,7 +131,7 @@ |
132 | 132 | |
133 | 133 | $filename = "$wgLocalMessageCache/messages-" . wfWikiID() . "-$code"; |
134 | 134 | $tempFilename = $filename . '.tmp'; |
135 | | - wfMkdirParents( $wgLocalMessageCache, 0777 ); // might fail |
| 135 | + wfMkdirParents( $wgLocalMessageCache ); // might fail |
136 | 136 | |
137 | 137 | wfSuppressWarnings(); |
138 | 138 | $file = fopen( $tempFilename, 'w'); |
Index: trunk/phase3/includes/FileStore.php |
— | — | @@ -123,7 +123,7 @@ |
124 | 124 | } else { |
125 | 125 | if( !file_exists( dirname( $destPath ) ) ) { |
126 | 126 | wfSuppressWarnings(); |
127 | | - $ok = mkdir( dirname( $destPath ), 0777, true ); |
| 127 | + $ok = wfMkdirParents( dirname( $destPath ) ); |
128 | 128 | wfRestoreWarnings(); |
129 | 129 | |
130 | 130 | if( !$ok ) { |