aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_messenger.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-08-22 12:52:48 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-08-22 12:52:48 +0000
commit6c763cd8b65c1b63d57fb0f176d2c98a44076df1 (patch)
treebdc638c998285ad49a0876b2e5394ea31845649a /phpBB/includes/functions_messenger.php
parent88c324a2a3d705cd44ce749af44079849ca091e7 (diff)
downloadforums-6c763cd8b65c1b63d57fb0f176d2c98a44076df1.tar
forums-6c763cd8b65c1b63d57fb0f176d2c98a44076df1.tar.gz
forums-6c763cd8b65c1b63d57fb0f176d2c98a44076df1.tar.bz2
forums-6c763cd8b65c1b63d57fb0f176d2c98a44076df1.tar.xz
forums-6c763cd8b65c1b63d57fb0f176d2c98a44076df1.zip
change the way we do chmodd'ing. I know, my implementation really sucked... good we have motivated community members who point this out. ;) Thanks to faw for providing a way better function and for discussing and also abiding to our needs. :) LEW21 should maybe credited too... he gave the inspiration without knowing it.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8780 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_messenger.php')
-rw-r--r--phpBB/includes/functions_messenger.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php
index 98cf3b123d..7583ed48fc 100644
--- a/phpBB/includes/functions_messenger.php
+++ b/phpBB/includes/functions_messenger.php
@@ -562,7 +562,7 @@ class queue
$fp = @fopen($this->cache_file . '.lock', 'wb');
fclose($fp);
- phpbb_chmod($this->cache_file . '.lock', 'write-all');
+ @chmod($this->cache_file . '.lock', 0777);
include($this->cache_file);
@@ -697,7 +697,7 @@ class queue
@flock($fp, LOCK_UN);
fclose($fp);
- phpbb_chmod($this->cache_file, 'rwrite');
+ phpbb_chmod($this->cache_file, CHMOD_WRITE);
}
}
@@ -738,7 +738,7 @@ class queue
@flock($fp, LOCK_UN);
fclose($fp);
- phpbb_chmod($this->cache_file, 'rwrite');
+ phpbb_chmod($this->cache_file, CHMOD_WRITE);
}
}
}