aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/mysql.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-11-03 17:50:39 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-11-03 17:50:39 +0000
commit1634814e16d052ba8738982652ba84caae1bb26d (patch)
tree7b42b3e56ba40a6b7ef12dc476863798173318e7 /phpBB/includes/db/mysql.php
parentdaa3288a368ddac0335dde7ee2a718883bfb2fdc (diff)
downloadforums-1634814e16d052ba8738982652ba84caae1bb26d.tar
forums-1634814e16d052ba8738982652ba84caae1bb26d.tar.gz
forums-1634814e16d052ba8738982652ba84caae1bb26d.tar.bz2
forums-1634814e16d052ba8738982652ba84caae1bb26d.tar.xz
forums-1634814e16d052ba8738982652ba84caae1bb26d.zip
- make sure the sql layer for mysql always states mysql4 and get to mysql if using mysql < 4
- assign some default vars to email templates (we always need some basic ones) git-svn-id: file:///svn/phpbb/trunk@6546 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/db/mysql.php')
-rw-r--r--phpBB/includes/db/mysql.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/includes/db/mysql.php b/phpBB/includes/db/mysql.php
index 56d8a419c8..89a6e21d70 100644
--- a/phpBB/includes/db/mysql.php
+++ b/phpBB/includes/db/mysql.php
@@ -42,6 +42,8 @@ class dbal_mysql extends dbal
$this->server = $sqlserver . (($port) ? ':' . $port : '');
$this->dbname = $database;
+ $this->sql_layer = 'mysql4';
+
$this->db_connect_id = ($this->persistency) ? @mysql_pconnect($this->server, $this->user, $sqlpassword) : @mysql_connect($this->server, $this->user, $sqlpassword);
if ($this->db_connect_id && $this->dbname != '')