mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/9694] Call error_reporting() in download/file.php when in avatar mode.
PHPBB3-9694
This commit is contained in:
parent
32882fd798
commit
881c74688b
1 changed files with 6 additions and 0 deletions
|
@ -31,6 +31,12 @@ else if (isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'
|
|||
|
||||
if (isset($_GET['avatar']))
|
||||
{
|
||||
if (!defined('E_DEPRECATED'))
|
||||
{
|
||||
define('E_DEPRECATED', 8192);
|
||||
}
|
||||
error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);
|
||||
|
||||
require($phpbb_root_path . 'config.' . $phpEx);
|
||||
|
||||
if (!defined('PHPBB_INSTALLED') || empty($dbms) || empty($acm_type))
|
||||
|
|
Loading…
Add table
Reference in a new issue