aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/download/file.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/download/file.php')
-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 ec15d36e08..2a9c472ca7 100644
--- a/phpBB/download/file.php
+++ b/phpBB/download/file.php
@@ -46,13 +46,16 @@ if (isset($_GET['avatar']))
require($phpbb_root_path . 'includes/functions_download' . '.' . $phpEx);
require($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx);
- $class_loader = new phpbb_class_loader($phpbb_root_path, '.' . $phpEx);
- $class_loader->register();
+ $phpbb_class_loader_ext = new phpbb_class_loader('phpbb_ext_', $phpbb_root_path . 'ext/', ".$phpEx");
+ $phpbb_class_loader_ext->register();
+ $phpbb_class_loader = new phpbb_class_loader('phpbb_', $phpbb_root_path . 'includes/', ".$phpEx");
+ $phpbb_class_loader->register();
// set up caching
$cache_factory = new phpbb_cache_factory($acm_type);
$cache = $cache_factory->get_service();
- $class_loader->set_cache($cache->get_driver());
+ $phpbb_class_loader_ext->set_cache($cache->get_driver());
+ $phpbb_class_loader->set_cache($cache->get_driver());
$request = new phpbb_request();
$db = new $sql_db();
@@ -73,6 +76,9 @@ if (isset($_GET['avatar']))
set_config(null, null, null, $config);
set_config_count(null, null, null, $config);
+ // load extensions
+ $phpbb_extension_manager = new phpbb_extension_manager($db, EXT_TABLE, $phpbb_root_path, ".$phpEx", $cache->get_driver());
+
$filename = request_var('avatar', '');
$avatar_group = false;
$exit = false;