From 3afd2c6948e777fde2f43f00bff1659f2691f4d8 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Fri, 27 Aug 2010 00:13:15 +0200 Subject: [ticket/9793] Make sure send_status_line() is defined when in avatar mode. When download/file.php is in avatar mode set_modified_headers() can be called, which then calls send_status_line() which is not available because includes/functions.php is not included in avatar mode. We also load includes/functions.php in the bootstrap now to solve this problem. Regression from c1a4cb1d01dc19650219566b60671abc767af662. PHPBB3-9793 PHPBB3-7782 --- phpBB/download/file.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpBB/download/file.php b/phpBB/download/file.php index 97f4ff3c8a..1f2cee4d95 100644 --- a/phpBB/download/file.php +++ b/phpBB/download/file.php @@ -48,6 +48,7 @@ if (isset($_GET['avatar'])) 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); $db = new $sql_db(); $cache = new cache(); -- cgit v1.2.1