From 136e85dd1487e68ed5a64a3c92ceeef6ed7f1ead Mon Sep 17 00:00:00 2001 From: Joey Kimsey Date: Fri, 9 Aug 2024 18:00:56 -0400 Subject: [PATCH] install bugfix --- install.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/install.php b/install.php index 952289c..fad0f04 100644 --- a/install.php +++ b/install.php @@ -207,6 +207,9 @@ class Install extends Controller { ], ], 'database' => [ + 'dbEnabled' => [ + 'value' => true, + ], 'dbHost' => [ 'value' => Input::postNull( 'dbHost' ), ], @@ -254,7 +257,7 @@ class Install extends Controller { // Apache should have the htaccess now, and Nginx should have been configured this way out of the box if ( Route::testRouting() ) { Session::flash( 'success', 'Routing is working as expected.' ); - $this->nextStep( 'models', true ); + return $this->nextStep( 'models', true ); } else { Issues::add( 'error', 'Could not verify url routing' ); } @@ -291,7 +294,7 @@ class Install extends Controller { Issues::add( 'error', [ 'There was an error with the Installation.' => $this->installer->getErrors() ] ); } else { Session::flash( 'success', [ 'Models Have been installed successfully.' => $this->installer->getErrors() ] ); - $this->nextStep( 'plugins', true ); + return $this->nextStep( 'plugins', true ); } } elseif ( Input::exists( 'submit' ) ) { Issues::add( 'error', [ 'There was an error with your form.' => Check::userErrors() ] ); @@ -326,7 +329,7 @@ class Install extends Controller { Issues::add( 'error', ['There was an error with the Installation.' => $this->installer->getErrors()] ); } else { Session::flash( 'success', [ 'Plugins Have been installed successfully.' => $this->installer->getErrors() ] ); - $this->nextStep( 'resources', true ); + return $this->nextStep( 'resources', true ); } } elseif ( Input::exists( 'submit' ) ) { Issues::add( 'error', ['There was an error with your form.' => Check::userErrors()] ); @@ -361,7 +364,7 @@ class Install extends Controller { Issues::add( 'error', ['There was an error with the Installation.' => $this->installer->getErrors()] ); } else { Session::flash( 'success', ['Resources have been installed successfully.' => $this->installer->getErrors()] ); - $this->nextStep( 'user', true ); + return $this->nextStep( 'user', true ); } } elseif ( Input::exists( 'submit' ) ) { Issues::add( 'error', ['There was an error with your form.' => Check::userErrors()] );