dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0cabc3
)
Yes, really world writeable
author
Tim Starling
<tstarling@users.mediawiki.org>
Wed, 4 Jan 2006 23:24:25 +0000
(23:24 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Wed, 4 Jan 2006 23:24:25 +0000
(23:24 +0000)
includes/MessageCache.php
patch
|
blob
|
history
diff --git
a/includes/MessageCache.php
b/includes/MessageCache.php
index
c6717ef
..
c3637b7
100755
(executable)
--- a/
includes/MessageCache.php
+++ b/
includes/MessageCache.php
@@
-98,7
+98,9
@@
class MessageCache {
}
$filename = "$wgLocalMessageCache/messages-$wgDBname";
+ $oldUmask = umask( 0 );
wfMkdirParents( $wgLocalMessageCache, 0777 );
+ umask( $oldUmask );
$file = fopen( $filename, 'w' );
if ( !$file ) {
@@
-108,6
+110,7
@@
class MessageCache {
fwrite( $file, $hash . $serialized );
fclose( $file );
+ @chmod( $filename, 0666 );
}