mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
setup wizard funcionality upgrade for v2
This commit is contained in:
@@ -15,6 +15,8 @@ class IndexController
|
||||
*/
|
||||
public function __invoke(): Application|Factory|View
|
||||
{
|
||||
$setup_status = 'installation-needed';
|
||||
|
||||
try {
|
||||
// Try to connect to database
|
||||
DB::getPdo();
|
||||
@@ -27,8 +29,9 @@ class IndexController
|
||||
|
||||
// Get all settings
|
||||
$settings = get_settings_in_json();
|
||||
} catch (PDOException $e) {
|
||||
$setup_status = 'setup-database';
|
||||
} catch (PDOException $e) {}
|
||||
|
||||
if ($setup_status === 'installation-needed') {
|
||||
|
||||
// Required parameters
|
||||
$upload_max_filesize = 128;
|
||||
|
||||
Reference in New Issue
Block a user