aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/db.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/db.php')
-rw-r--r--phpBB/db.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/phpBB/db.php b/phpBB/db.php
index 3f37068919..951235eabe 100644
--- a/phpBB/db.php
+++ b/phpBB/db.php
@@ -37,6 +37,10 @@ switch($dbms)
break;
}
+
+// Setup what template to use. Currently just use default
+$template = new Template("./templates/Default", "keep");
+
// Make the database connection.
$db = new sql_db($dbhost, $dbuser, $dbpasswd, $dbname, false);
if(!$db)
@@ -59,7 +63,7 @@ $userdata = Array();
$sql = "SELECT * FROM ".CONFIG_TABLE." WHERE selected = 1";
if(!$result = $db->sql_query($sql))
{
- error_die($db, QUERY_ERROR);
+ error_die($db, SQL_CONNECT);
}
else
{
@@ -110,7 +114,4 @@ if (!$user_logged_in)
}
}
-// Setup what template to use. Currently just use default
-$template = new Template("./templates/Default", "keep");
-
?>