2008-11-28, 10:08 PM
MyBB 1.4.3 and 1.4.4.
There is no space between "user=xxx" and "port=xxx", for example it generates "... user=markport=5432 ...". The solution is to put some spaces in right places, like down here, in file inc/db_pgsql.php, in MyBB 1.4.4 from line 211:
There is no space between "user=xxx" and "port=xxx", for example it generates "... user=markport=5432 ...". The solution is to put some spaces in right places, like down here, in file inc/db_pgsql.php, in MyBB 1.4.4 from line 211:
$this->connect_string = "dbname={$single_connection['database']} user={$single_connection['username']}";
if(strpos($single_connection['hostname'], ':') !== false)
{
list($single_connection['hostname'], $single_connection['port']) = explode(':', $single_connection['hostname']);
}
if($single_connection['port'])
{
$this->connect_string .= " port={$single_connection['port']}";
}
if($single_connection['hostname'] != "localhost")
{
$this->connect_string .= " host={$single_connection['hostname']}";
}
if($single_connection['password'])
{
$this->connect_string .= " password={$single_connection['password']}";
}