restore asset url check
in the restore init process, there is a space that restores assets from a previous install but grabbing them directly from the site and saving them to the install. a check was added so this script only runs if that url has been set in the init restore form
This commit is contained in:
parent
59b9f481af
commit
e02f99da94
1 changed files with 3 additions and 1 deletions
|
@ -135,7 +135,9 @@ class InitService
|
||||||
if ($found) {
|
if ($found) {
|
||||||
if (password_verify($request->restore_member_pass, $found['password'])) {
|
if (password_verify($request->restore_member_pass, $found['password'])) {
|
||||||
//restore assets from previous site
|
//restore assets from previous site
|
||||||
$this->moveAssets($zip, $request->restore_former_url);
|
if ($request->restore_former_url != '' || $request->restore_former_url != null) {
|
||||||
|
$this->moveAssets($zip, $request->restore_former_url);
|
||||||
|
}
|
||||||
$newFolks = [];
|
$newFolks = [];
|
||||||
if (!isset($found['secret'])) {
|
if (!isset($found['secret'])) {
|
||||||
$found['secret'] = self::validSecret(12);
|
$found['secret'] = self::validSecret(12);
|
||||||
|
|
Loading…
Reference in a new issue