Merge branch 'master' of github.com:akaunting/akaunting
This commit is contained in:
commit
672159eafc
@ -22,7 +22,7 @@ class Modules extends Controller
|
|||||||
return $s;
|
return $s;
|
||||||
})->pluck('value', 'key');
|
})->pluck('value', 'key');
|
||||||
|
|
||||||
$module = Module::get($alias);
|
$module = Module::findByAlias($alias);
|
||||||
|
|
||||||
return view('settings.modules.edit', compact('setting', 'module'));
|
return view('settings.modules.edit', compact('setting', 'module'));
|
||||||
}
|
}
|
||||||
|
@ -373,8 +373,13 @@ trait Modules
|
|||||||
|
|
||||||
$response = $this->getRemote($url, 'GET', ['timeout' => 30, 'referer' => true]);
|
$response = $this->getRemote($url, 'GET', ['timeout' => 30, 'referer' => true]);
|
||||||
|
|
||||||
|
// Exception
|
||||||
|
if ($response instanceof RequestException) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Bad response
|
// Bad response
|
||||||
if ($response->getStatusCode() != 200) {
|
if (!$response || ($response->getStatusCode() != 200)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ class Updater
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Get module instance
|
// Get module instance
|
||||||
$module = Module::get($alias);
|
$module = Module::findByAlias($alias);
|
||||||
$model = Model::where('alias', $alias)->first();
|
$model = Model::where('alias', $alias)->first();
|
||||||
|
|
||||||
// Move all files/folders from temp path
|
// Move all files/folders from temp path
|
||||||
@ -114,7 +114,7 @@ class Updater
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($response->getStatusCode() == 200) {
|
if ($response && ($response->getStatusCode() == 200)) {
|
||||||
$file = $response->getBody()->getContents();
|
$file = $response->getBody()->getContents();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@ class Versions
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Bad response
|
// Bad response
|
||||||
if ($response->getStatusCode() != 200) {
|
if (!$response || ($response->getStatusCode() != 200)) {
|
||||||
return $latest;
|
return $latest;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -115,4 +115,4 @@ class Versions
|
|||||||
|
|
||||||
return $latest;
|
return $latest;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,15 +10,15 @@ return [
|
|||||||
|
|
||||||
'minor' => '2',
|
'minor' => '2',
|
||||||
|
|
||||||
'patch' => '9',
|
'patch' => '10',
|
||||||
|
|
||||||
'build' => '',
|
'build' => '',
|
||||||
|
|
||||||
'status' => 'Stable',
|
'status' => 'Stable',
|
||||||
|
|
||||||
'date' => '27-June-2018',
|
'date' => '2-July-2018',
|
||||||
|
|
||||||
'time' => '20:30',
|
'time' => '19:30',
|
||||||
|
|
||||||
'zone' => 'GMT +3',
|
'zone' => 'GMT +3',
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user