Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
ed28e18d
Commit
ed28e18d
authored
Nov 11, 2013
by
Robert Lyon
Committed by
Gerrit Code Review
Nov 11, 2013
Browse files
Merge "Pass the $CFG->dbport to ADODB separately from the hostname"
parents
1621c915
7abb6793
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/init.php
View file @
ed28e18d
...
...
@@ -122,8 +122,10 @@ try {
if
(
empty
(
$CFG
->
dbhost
))
{
$CFG
->
dbhost
=
''
;
}
else
if
(
!
empty
(
$CFG
->
dbport
))
{
$CFG
->
dbhost
.
=
':'
.
$CFG
->
dbport
;
// The ADODB connection function doesn't have a separate port argument, but the
// postgres7, mysql, and mysqli drivers all support a $this->dbport field.
if
(
!
empty
(
$CFG
->
dbport
))
{
$db
->
port
=
$CFG
->
dbport
;
}
if
(
!
empty
(
$CFG
->
dbpersist
))
{
// Use persistent connection (default)
$dbconnected
=
$db
->
PConnect
(
$CFG
->
dbhost
,
$CFG
->
dbuser
,
$CFG
->
dbpass
,
$CFG
->
dbname
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment