aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/style.php
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2011-01-09 23:58:27 +0100
committerIgor Wiedler <igor@wiedler.ch>2011-01-09 23:58:27 +0100
commit95c683056b85399200e2caaa9aa65edc6843c16f (patch)
treeac11043ba149791a225d587e7a61e34db75a04f6 /phpBB/style.php
parent5373f8157d8a2619197702c3a00a6bb432ef3e25 (diff)
parent1aef7eb20ee195c7f21d6c5b78653b7c43e669ec (diff)
downloadforums-95c683056b85399200e2caaa9aa65edc6843c16f.tar
forums-95c683056b85399200e2caaa9aa65edc6843c16f.tar.gz
forums-95c683056b85399200e2caaa9aa65edc6843c16f.tar.bz2
forums-95c683056b85399200e2caaa9aa65edc6843c16f.tar.xz
forums-95c683056b85399200e2caaa9aa65edc6843c16f.zip
Merge branch 'task/acm-refactor' into develop
Conflicts: tests/bootstrap.php
Diffstat (limited to 'phpBB/style.php')
-rw-r--r--phpBB/style.php15
1 files changed, 7 insertions, 8 deletions
diff --git a/phpBB/style.php b/phpBB/style.php
index 3c2f94023b..cff91a2312 100644
--- a/phpBB/style.php
+++ b/phpBB/style.php
@@ -57,18 +57,19 @@ 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);
- $cache = new cache();
-
- $class_loader = new phpbb_class_loader($phpbb_root_path, '.' . $phpEx, $cache);
+ $class_loader = new phpbb_class_loader($phpbb_root_path, '.' . $phpEx);
$class_loader->register();
- $request = new phpbb_request();
+ // set up caching
+ $cache_factory = new phpbb_cache_factory($acm_type);
+ $class_loader->set_cache($cache_factory->get_driver());
+ $cache = $cache_factory->get_service();
+
+ $request = new phpbb_request();
$db = new $sql_db();
// make sure request_var uses this request instance
@@ -308,5 +309,3 @@ if ($id)
}
$db->sql_close();
}
-
-exit;