1
0
mirror of https://github.com/flarum/core.git synced 2025-10-14 16:34:26 +02:00

Remove MySQL port field from visual installer

Port can still be specified by suffixing the host with a :

closes #825
This commit is contained in:
Toby Zerner
2017-07-22 11:32:07 +09:30
parent 43ee7b59a4
commit 89d4a1e849
3 changed files with 10 additions and 9 deletions

View File

@@ -36,11 +36,10 @@ class UserDataProvider implements DataProviderInterface
public function getDatabaseConfiguration()
{
$host = $this->ask('Database host:');
$port = '3306';
if (str_contains($host, ':')) {
list($host, $port) = explode(':', $host, 2);
} else {
$port = $this->ask('Database port:');
}
return [