parent
774d249751
commit
1309f6bcbd
|
@ -98,12 +98,12 @@ class Places
|
||||||
|
|
||||||
$filename = sys_get_temp_dir().'/planet_coarse_boundaries.zip';
|
$filename = sys_get_temp_dir().'/planet_coarse_boundaries.zip';
|
||||||
if (file_exists($filename) && !unlink($filename)) {
|
if (file_exists($filename) && !unlink($filename)) {
|
||||||
throw new \Exception("Failed to delete old planet zip file: $filename");
|
throw new \Exception("Failed to delete old planet zip file: {$filename}");
|
||||||
}
|
}
|
||||||
|
|
||||||
$txtfile = sys_get_temp_dir().'/planet_coarse_boundaries.txt';
|
$txtfile = sys_get_temp_dir().'/planet_coarse_boundaries.txt';
|
||||||
if (file_exists($txtfile) && !unlink($txtfile)) {
|
if (file_exists($txtfile) && !unlink($txtfile)) {
|
||||||
throw new \Exception("Failed to delete old planet data file: $txtfile");
|
throw new \Exception("Failed to delete old planet data file: {$txtfile}");
|
||||||
}
|
}
|
||||||
|
|
||||||
$fp = fopen($filename, 'w+');
|
$fp = fopen($filename, 'w+');
|
||||||
|
|
Loading…
Reference in New Issue