mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-27 04:18:55 +00:00
Compare commits
No commits in common. "954bc07de1ce7be39993bd5eb007a7c588db4b3b" and "4f10e6e212108ada3dcff3eedfe3c0fa6cbefb6f" have entirely different histories.
954bc07de1
...
4f10e6e212
1 changed files with 19 additions and 17 deletions
|
@ -145,12 +145,7 @@ class check_filesystem extends \phpbb\install\task_base
|
|||
// Try to create file if it does not exists
|
||||
if (!file_exists($path))
|
||||
{
|
||||
if (!is_resource($fp = @fopen($path, 'w')))
|
||||
{
|
||||
$exists = $writable = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
$fp = @fopen($path, 'w');
|
||||
@fclose($fp);
|
||||
try
|
||||
{
|
||||
|
@ -161,14 +156,21 @@ class check_filesystem extends \phpbb\install\task_base
|
|||
}
|
||||
catch (\phpbb\filesystem\exception\filesystem_exception $e)
|
||||
{
|
||||
$writable = false;
|
||||
// Do nothing
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (!$this->filesystem->is_writable($path))
|
||||
|
||||
if (file_exists($path))
|
||||
{
|
||||
if (!$this->filesystem->is_writable($path))
|
||||
{
|
||||
$writable = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$exists = $writable = false;
|
||||
}
|
||||
|
||||
$this->set_test_passed(($exists && $writable) || $failable);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue