diff options
author | ThaDafinser <martin.keckeis@thyssenkrupp.com> | 2015-09-02 14:07:09 +0300 |
---|---|---|
committer | ThaDafinser <martin.keckeis@thyssenkrupp.com> | 2015-09-02 14:07:09 +0300 |
commit | 075e0a3f2e0d41e45a778c6d6afe7122acfdf972 (patch) | |
tree | d0b84931bf0283cf5475a680a3d3fd9d585f80db /plugins/UserCountry | |
parent | b3e8537b4ba8ed1182fc7b2e647ad768ea8a9260 (diff) |
fixing some unlink and others
Diffstat (limited to 'plugins/UserCountry')
-rwxr-xr-x | plugins/UserCountry/GeoIPAutoUpdater.php | 2 | ||||
-rw-r--r-- | plugins/UserCountry/tests/Unit/UserCountryTest.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/UserCountry/GeoIPAutoUpdater.php b/plugins/UserCountry/GeoIPAutoUpdater.php index aba1d5d263..1359c8ac2e 100755 --- a/plugins/UserCountry/GeoIPAutoUpdater.php +++ b/plugins/UserCountry/GeoIPAutoUpdater.php @@ -268,7 +268,7 @@ class GeoIPAutoUpdater extends Task } $tempFile = GeoIp::getPathForGeoIpDatabase($tempFilename); - rename($existing = $tempFile, $newName = $oldDbFile); + rename($tempFile, $oldDbFile); // delete original archive if ($unlink) { diff --git a/plugins/UserCountry/tests/Unit/UserCountryTest.php b/plugins/UserCountry/tests/Unit/UserCountryTest.php index 9b62518e3e..dddbce6b9f 100644 --- a/plugins/UserCountry/tests/Unit/UserCountryTest.php +++ b/plugins/UserCountry/tests/Unit/UserCountryTest.php @@ -138,7 +138,7 @@ class UserCountryTest extends \PHPUnit_Framework_TestCase foreach ($filesToRemove as $name) { $path = $geoIpDirPath . '/' . $name; if (file_exists($path)) { - unlink($path); + @unlink($path); } } } |