mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 22:08:54 +00:00
[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 c1a4cb1d01
.
PHPBB3-9793
PHPBB3-7782
This commit is contained in:
parent
cd46b39967
commit
3afd2c6948
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue