summaryrefslogtreecommitdiff
path: root/installer/database_config.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-11-12 14:42:37 -0800
committerTim Almdal <tnalmdal@shaw.ca>2009-11-12 14:42:37 -0800
commit393896a7010bf2da19674aa6a63a693a0d800233 (patch)
tree10f1705ebdfa1db45d327851a340ef05e42f072c /installer/database_config.php
parenta5a8cfd1bc7cd03c224c731c3ff433eec033457d (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/database_config.php')
-rw-r--r--installer/database_config.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/installer/database_config.php b/installer/database_config.php
index 0f04b95c..8abf35e7 100644
--- a/installer/database_config.php
+++ b/installer/database_config.php
@@ -33,7 +33,7 @@ $config['default'] = array(
'user' => '<?php print $user ?>',
'pass' => '<?php print str_replace("'", "\\'", $password) ?>',
'host' => '<?php print $host ?>',
- 'port' => false,
+ 'port' => <?php if (!empty($port)): ?>'<?php print $port ?>' <?php else: ?>false<?php endif ?>,
'socket' => false,
'database' => '<?php print $dbname ?>'
),