This commit is contained in:
Joey Kimsey
2024-08-10 15:49:18 -04:00
parent 4d1e8d6753
commit 14bc0c1e64
4 changed files with 131 additions and 6 deletions

View File

@ -99,7 +99,7 @@ class Install extends Controller {
Debug::error( 'install hash not found on file.' );
return false;
}
if ( !Session::exists( 'installHash' ) && !Cookie::exists( 'installHash' ) ) {
if ( ! Session::exists( 'installHash' ) && ! Cookie::exists( 'installHash' ) ) {
Debug::error( 'install hash not found in session or cookie.' );
return false;
}
@ -207,6 +207,9 @@ class Install extends Controller {
],
],
'database' => [
'dbMaxQuery' => [
'value'=> 100,
],
'dbEnabled' => [
'value' => true,
],
@ -227,7 +230,7 @@ class Install extends Controller {
],
],
];
if ( !TheTempusProject::$activeConfig->generate( CONFIG_JSON, $configMatrix ) ) {
if ( ! TheTempusProject::$activeConfig->generate( CONFIG_JSON, $configMatrix ) ) {
return Issues::add( 'error', 'Config file already exists so the installer has been halted. If there was an error with installation, please delete app/config/config.json manually and try again. The installer should automatically bring you back to this step.' );
}
Session::flash( 'success', 'Config saved successfully.' );