Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
2d1dc503
Commit
2d1dc503
authored
Nov 26, 2007
by
Nigel McNie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow connections to local unix sockets. Fixes bug #808
parent
175f667c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
htdocs/init.php
htdocs/init.php
+4
-1
No files found.
htdocs/init.php
View file @
2d1dc503
...
...
@@ -84,7 +84,10 @@ try {
$db
=
&
ADONewConnection
(
$CFG
->
dbtype
);
$dbgenerator
=
null
;
if
(
!
empty
(
$CFG
->
dbport
))
{
if
(
empty
(
$CFG
->
dbhost
))
{
$CFG
->
dbhost
=
''
;
}
else
if
(
!
empty
(
$CFG
->
dbport
))
{
$CFG
->
dbhost
.
=
':'
.
$CFG
->
dbport
;
}
if
(
!
empty
(
$CFG
->
dbpersist
))
{
// Use persistent connection (default)
...
...
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