aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/download
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/download')
-rw-r--r--phpBB/download/file.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php
index 46ddbb9916..74925fb447 100644
--- a/phpBB/download/file.php
+++ b/phpBB/download/file.php
@@ -44,15 +44,21 @@ if (isset($_GET['avatar']))
exit;
}
- require($phpbb_root_path . 'includes/acm/acm_' . $acm_type . '.' . $phpEx);
- require($phpbb_root_path . 'includes/cache.' . $phpEx);
+ require($phpbb_root_path . 'includes/class_loader.' . $phpEx);
require($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx);
require($phpbb_root_path . 'includes/constants.' . $phpEx);
require($phpbb_root_path . 'includes/functions.' . $phpEx);
require($phpbb_root_path . 'includes/functions_download' . '.' . $phpEx);
+ $class_loader = new phpbb_class_loader($phpbb_root_path, '.' . $phpEx);
+ $class_loader->register();
+
+ // set up caching
+ $acm = phpbb_cache_factory::create($acm_type)->get_acm();
+ $class_loader->set_acm($acm);
+ $cache = new phpbb_cache_service($acm);
+
$db = new $sql_db();
- $cache = new cache();
// Connect to DB
if (!@$db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false, false))