aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-20 11:24:41 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-20 11:24:41 +0000
commitbc440080560ba18d2371320334aa37619489f00f (patch)
tree14d3ee73bd47d67fd129b7a928a04d9b3422168e /engine/lib
parent81c1ee6e7d08ece79919fe7fd438f07f89d00eed (diff)
downloadelgg-bc440080560ba18d2371320334aa37619489f00f.tar.gz
elgg-bc440080560ba18d2371320334aa37619489f00f.tar.bz2
Refs #2474 - merged [6976] from 1.7 branch into trunk
git-svn-id: http://code.elgg.org/elgg/trunk@7103 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/database.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/lib/database.php b/engine/lib/database.php
index 34ff3b305..76ca6c193 100644
--- a/engine/lib/database.php
+++ b/engine/lib/database.php
@@ -91,14 +91,14 @@ function establish_db_link($dblinkname = "readwrite") {
}
// Connect to database
- if (!$dblink[$dblinkname] = mysql_connect($CONFIG->dbhost, $CONFIG->dbuser, $CONFIG->dbpass, true)) {
+ if (!$dblink[$dblinkname] = mysql_connect($dbhost, $dbuser, $dbpass, true)) {
$msg = sprintf(elgg_echo('DatabaseException:WrongCredentials'),
- $CONFIG->dbuser, $CONFIG->dbhost, "****");
+ $dbuser, $dbhost, "****");
throw new DatabaseException($msg);
}
- if (!mysql_select_db($CONFIG->dbname, $dblink[$dblinkname])) {
- $msg = sprintf(elgg_echo('DatabaseException:NoConnect'), $CONFIG->dbname);
+ if (!mysql_select_db($dbname, $dblink[$dblinkname])) {
+ $msg = sprintf(elgg_echo('DatabaseException:NoConnect'), $dbname);
throw new DatabaseException($msg);
}