Skip to content

Commit

Permalink
copy file instead of renaming it.
Browse files Browse the repository at this point in the history
As stated in thread; fixes matomo-org#5050
  • Loading branch information
RMastop committed Aug 1, 2017
1 parent 7057d18 commit 27f2dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/UserCountry/GeoIPAutoUpdater.php
Expand Up @@ -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) {
Expand Down

0 comments on commit 27f2dcf

Please sign in to comment.