fixed #480
This commit is contained in:
parent
fb8c918ae2
commit
973ea14c6c
@ -54,7 +54,7 @@ class Updater
|
|||||||
// Unzip the file
|
// Unzip the file
|
||||||
$zip = new ZipArchive();
|
$zip = new ZipArchive();
|
||||||
|
|
||||||
if (!$zip->open($file) || !$zip->extractTo($temp_path)) {
|
if (($zip->open($file) !== true) || !$zip->extractTo($temp_path)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -107,7 +107,7 @@ class Updater
|
|||||||
$url = 'apps/' . $alias . '/download/' . $version . '/' . $info['akaunting'] . '/' . $info['token'];
|
$url = 'apps/' . $alias . '/download/' . $version . '/' . $info['akaunting'] . '/' . $info['token'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$response = static::getRemote($url, ['timeout' => 50, 'track_redirects' => true]);
|
$response = static::getRemote($url, ['timeout' => 30, 'track_redirects' => true]);
|
||||||
|
|
||||||
// Exception
|
// Exception
|
||||||
if ($response instanceof RequestException) {
|
if ($response instanceof RequestException) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user