aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/database.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-10 14:37:11 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-10 14:37:11 +0000
commit005666d19b54d5aef654f96fd7b555d954cf425f (patch)
tree5d67993f66a56255edc0cff3247bf9184c782add /engine/lib/database.php
parent4419e9312d8c2c7ae792d3e0455df426a3c89440 (diff)
downloadelgg-005666d19b54d5aef654f96fd7b555d954cf425f.tar.gz
elgg-005666d19b54d5aef654f96fd7b555d954cf425f.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Debug added to db connect git-svn-id: https://code.elgg.org/elgg/trunk@847 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/database.php')
-rw-r--r--engine/lib/database.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/database.php b/engine/lib/database.php
index 55ff021e5..69f6f4c0f 100644
--- a/engine/lib/database.php
+++ b/engine/lib/database.php
@@ -48,7 +48,7 @@
// Connect to database
if (!$dblink[$dblinkname] = mysql_connect($CONFIG->dbhost, $CONFIG->dbuser, $CONFIG->dbpass, true))
- throw new DatabaseException(elgg_echo('DatabaseException:WrongCredentials'));
+ throw new DatabaseException(sprintf(elgg_echo('DatabaseException:WrongCredentials'), $CONFIG->dbuser, $CONFIG->dbhost, $CONFIG->debug ? $CONFIG->dbpass : "****"));
if (!mysql_select_db($CONFIG->dbname, $dblink[$dblinkname]))
throw new DatabaseException(sprintf(elgg_echo('DatabaseException:NoConnect'), $CONFIG->dbname));