Commit 4da766a1 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1887321: Update old database connection comments to match current Mahara logic"

parents 971fca7a f76a3057
......@@ -149,10 +149,12 @@ try {
if (!empty($CFG->dbport)) {
$db->port = $CFG->dbport;
}
if (!empty($CFG->dbpersist)) { // Use persistent connection (default)
if (!empty($CFG->dbpersist)) {
// Use persistent connection
$dbconnected = $db->PConnect($CFG->dbhost,$CFG->dbuser,$CFG->dbpass,$CFG->dbname);
}
else { // Use single connection
else {
// Use single connection (default)
$dbconnected = $db->Connect($CFG->dbhost,$CFG->dbuser,$CFG->dbpass,$CFG->dbname);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment