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.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php
index a7e8b9f06c..985a24e572 100644
--- a/phpBB/download/file.php
+++ b/phpBB/download/file.php
@@ -70,7 +70,10 @@ if (isset($_GET['avatar']))
// worst-case default
$browser = (!empty($_SERVER['HTTP_USER_AGENT'])) ? htmlspecialchars((string) $_SERVER['HTTP_USER_AGENT']) : 'msie 6.0';
- $config = $cache->obtain_config();
+ $config = new phpbb_config_db($db, $cache_factory->get_driver());
+ set_config(null, null, null, $config);
+ set_config_count(null, null, null, $config);
+
$filename = $_GET['avatar'];
$avatar_group = false;
$exit = false;