Add port to installer

This commit is contained in:
Tom Hatzer 2016-12-23 15:41:03 +01:00 committed by GitHub
parent b780a6237e
commit b1df28d4d9
1 changed files with 4 additions and 1 deletions

View File

@ -121,6 +121,7 @@ class InstallController extends AbstractController {
$config = array(
'host' => 'localhost',
'port' => '3306',
'name' => '',
'user' => '',
'pass' => '',
@ -143,7 +144,8 @@ class InstallController extends AbstractController {
$config['host'],
$config['user'],
$config['pass'],
$config['name']
$config['name'],
$config['port'],
);
if($this->db->status()) {
@ -307,6 +309,7 @@ class InstallController extends AbstractController {
'pass' => '',
'name' => '',
'host' => '',
'port' => '3306',
);
$pattern = "/define\('SM_DB_{key}', '(.*?)'/u";