1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-13 20:28:44 +01:00

[ticket/12483] Use file_put_contents()

PHPBB3-12483
This commit is contained in:
Joas Schilling 2014-05-06 15:23:55 +02:00
parent 7b0b6a99c0
commit 18d145f38f

View File

@ -80,9 +80,7 @@ abstract class phpbb_database_test_case extends PHPUnit_Extensions_Database_Test
$schema_generator = new \phpbb\db\migration\schema_generator($classes, new \phpbb\config\config(array()), $db, new \phpbb\db\tools($db, true), $phpbb_root_path, $phpEx, $table_prefix);
$schema_data = $schema_generator->get_schema();
$fp = fopen(self::$schema_file, 'wb');
fwrite($fp, json_encode($schema_data));
fclose($fp);
file_put_contents(self::$schema_file, json_encode($schema_data));
}
copy(self::$install_schema_file, self::$phpbb_schema_copy);