aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/style.php
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2010-08-31 21:26:50 +0200
committerNils Adermann <naderman@naderman.de>2010-09-17 14:08:14 +0200
commit456de639123ae3da6320bed6140ab69ac9925e74 (patch)
tree599778c0a452f6180de82e13288f7b7ed8e686ac /phpBB/style.php
parentb3558b50786dd8a66e4c4011647c048612bbfa7f (diff)
downloadforums-456de639123ae3da6320bed6140ab69ac9925e74.tar
forums-456de639123ae3da6320bed6140ab69ac9925e74.tar.gz
forums-456de639123ae3da6320bed6140ab69ac9925e74.tar.bz2
forums-456de639123ae3da6320bed6140ab69ac9925e74.tar.xz
forums-456de639123ae3da6320bed6140ab69ac9925e74.zip
[feature/request-class] Refactor request classes to use autoloading
All class names have been adjusted to use a phpbb_request prefix, allowing them to be autoloaded. Also introduces some improvements to autoloading in general. PHPBB3-9716
Diffstat (limited to 'phpBB/style.php')
-rw-r--r--phpBB/style.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/style.php b/phpBB/style.php
index 8ca1751391..026b5eecfc 100644
--- a/phpBB/style.php
+++ b/phpBB/style.php
@@ -55,15 +55,20 @@ $id = (isset($_GET['id'])) ? intval($_GET['id']) : 0;
if ($id)
{
// Include files
+ require($phpbb_root_path . 'includes/class_loader.' . $phpEx);
require($phpbb_root_path . 'includes/acm/acm_' . $acm_type . '.' . $phpEx);
require($phpbb_root_path . 'includes/cache.' . $phpEx);
require($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx);
require($phpbb_root_path . 'includes/constants.' . $phpEx);
require($phpbb_root_path . 'includes/functions.' . $phpEx);
- $db = new $sql_db();
$cache = new cache();
+ $class_loader = new phpbb_class_loader($phpbb_root_path, '.' . $phpEx, $cache);
+ $class_loader->register();
+
+ $db = new $sql_db();
+
// Connect to DB
if (!@$db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false, false))
{