Skip to content

Commit

Permalink
Update InstallController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
joszz authored Jul 21, 2021
1 parent dfe50cd commit ceca89e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions app/controllers/InstallController.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,14 @@ private function createDefaultSetting($name, $section, $category, $value)
*/
private function writeConfig()
{
$config['database'] = [
'host' => $this->postedData['mysql-host'],
'name' => $this->postedData['chell-database'],
'username' => $this->postedData['chell-database-user'],
'password' => $this->postedData['chell-database-password'],
$config = [
'general' => [ 'debug' => '0'],
'database' => [
'host' => $this->postedData['mysql-host'],
'name' => $this->postedData['chell-database'],
'username' => $this->postedData['chell-database-user'],
'password' => $this->postedData['chell-database-password'],
]
];
(new WriteiniFile(APP_PATH . 'app/config/config.ini'))->create($config)->write();
}
Expand Down

0 comments on commit ceca89e

Please sign in to comment.