diff --git a/plugins/UserCountry/GeoIPAutoUpdater.php b/plugins/UserCountry/GeoIPAutoUpdater.php index 77636afdd14..acfbf321578 100755 --- a/plugins/UserCountry/GeoIPAutoUpdater.php +++ b/plugins/UserCountry/GeoIPAutoUpdater.php @@ -268,7 +268,7 @@ public static function unzipDownloadedFile($path, $unlink = false) } $tempFile = GeoIp::getPathForGeoIpDatabase($tempFilename); - rename($tempFile, $oldDbFile); + copy($tempFile, $oldDbFile); // delete original archive if ($unlink) {