diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-12 14:42:37 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-12 14:42:37 -0800 |
commit | 393896a7010bf2da19674aa6a63a693a0d800233 (patch) | |
tree | 10f1705ebdfa1db45d327851a340ef05e42f072c /installer/cli.php | |
parent | a5a8cfd1bc7cd03c224c731c3ff433eec033457d (diff) |
Initialize the database config with the port number if it is specified. Also set it up so the mysqli constructor will split it into host and port for the call to the mysqli constructor. Fixes ticket: #780
Diffstat (limited to 'installer/cli.php')
-rw-r--r-- | installer/cli.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/installer/cli.php b/installer/cli.php index 182c3d26..f736ffcb 100644 --- a/installer/cli.php +++ b/installer/cli.php @@ -95,7 +95,7 @@ function parse_cli_params() { $config["dbname"] = $argv[++$i]; break; case "-h": - $config["host"] = $argv[++$i]; + list ($config["host"], $config["port"]) = explode(":", $argv[++$i]); break; case "-u": $config["user"] = $argv[++$i]; |