Add port to installer

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