bugfixes
This commit is contained in:
@ -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.' );
|
||||
|
Reference in New Issue
Block a user