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.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php
index 4a392b002d..91c05586a5 100644
--- a/phpBB/download/file.php
+++ b/phpBB/download/file.php
@@ -67,6 +67,7 @@ if (isset($_GET['avatar']))
$phpbb_dispatcher = $phpbb_container->get('dispatcher');
$request = $phpbb_container->get('request');
$db = $phpbb_container->get('dbal.conn');
+ $phpbb_log = $phpbb_container->get('log');
// Connect to DB
if (!@$db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false, false))
@@ -88,6 +89,8 @@ if (isset($_GET['avatar']))
// worst-case default
$browser = strtolower($request->header('User-Agent', 'msie 6.0'));
+ $phpbb_avatar_manager = $phpbb_container->get('avatar.manager');
+
$filename = request_var('avatar', '');
$avatar_group = false;
$exit = false;