mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
Merge branch '3.3.x'
This commit is contained in:
@@ -575,13 +575,10 @@ class filesystem implements filesystem_interface
|
||||
}
|
||||
else
|
||||
{
|
||||
$handle = @fopen($file, 'c');
|
||||
$handle = new \SplFileInfo($file);
|
||||
|
||||
if (is_resource($handle))
|
||||
{
|
||||
fclose($handle);
|
||||
return true;
|
||||
}
|
||||
// Returns TRUE if writable, FALSE otherwise
|
||||
return $handle->isWritable();
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user