1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/17361] Fix migrations

PHPBB-17361
This commit is contained in:
Ruben Calvo
2024-11-30 03:22:46 +01:00
parent a44295a1ba
commit 1f7ae9e2b0
7 changed files with 103 additions and 7 deletions

View File

@@ -162,12 +162,7 @@ class acp_database
throw new \phpbb\exception\runtime_exception('CANNOT_OPEN_FILE');
}
$storage->write_stream($file, $fp);
if (is_resource($fp))
{
fclose($fp);
}
$storage->write($file, $fp);
// Remove file from tmp
@unlink($temp_dir . '/' . $file);