aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/common.php
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2012-07-21 17:43:43 +0200
committerIgor Wiedler <igor@wiedler.ch>2012-07-21 18:11:14 +0200
commit90a957ad26f52e26c3979464c5ac15b1fd0fcc28 (patch)
tree8ddda79bc487e39172cd0e75573e5d0c775e74cb /phpBB/common.php
parentf7f78adeb910c84e86414dd6f6470631f5a47d8f (diff)
downloadforums-90a957ad26f52e26c3979464c5ac15b1fd0fcc28.tar
forums-90a957ad26f52e26c3979464c5ac15b1fd0fcc28.tar.gz
forums-90a957ad26f52e26c3979464c5ac15b1fd0fcc28.tar.bz2
forums-90a957ad26f52e26c3979464c5ac15b1fd0fcc28.tar.xz
forums-90a957ad26f52e26c3979464c5ac15b1fd0fcc28.zip
[ticket/11015] Make DBAL classes autoloadable
PHPBB3-11015 This allows us to just create the object without having to include the driver first. However, it also means that users must specify the full class name in config.php
Diffstat (limited to 'phpBB/common.php')
-rw-r--r--phpBB/common.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/phpBB/common.php b/phpBB/common.php
index 81fe275008..9862fcf4c3 100644
--- a/phpBB/common.php
+++ b/phpBB/common.php
@@ -79,7 +79,6 @@ require($phpbb_root_path . 'includes/functions.' . $phpEx);
require($phpbb_root_path . 'includes/functions_content.' . $phpEx);
require($phpbb_root_path . 'includes/constants.' . $phpEx);
-require($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx);
require($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx);
// Set PHP error handler to ours
@@ -102,7 +101,7 @@ $phpbb_dispatcher = new phpbb_event_dispatcher();
$request = new phpbb_request();
$user = new phpbb_user();
$auth = new phpbb_auth();
-$db = new $sql_db();
+$db = new $dbms();
// make sure request_var uses this request instance
request_var('', 0, false, false, $request); // "dependency injection" for a function