*/
public static function getTempFolder() {
try {
- // This method does not contain any shut up operator by intent.
- // Any operation that fails here is fatal.
$path = WCF_DIR.'tmp/';
if (is_file($path)) {
throw new SystemException("Temporary folder '".$path."' is not writable. Please check the permissions using your favorite ftp program.");
}
- if (md5_file($path . '/.htaccess') !== '5cc8a02be988615b049f5abecba2f3a0') {
+ if (@md5_file($path . '/.htaccess') !== '5cc8a02be988615b049f5abecba2f3a0') {
file_put_contents($path.'/.htaccess', 'deny from all');
}