diff options
author | Andreas Fischer <bantu@phpbb.com> | 2010-07-01 23:30:48 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2010-07-01 23:30:48 +0200 |
commit | 881c74688bc41d83c00db8c96715dc48d06c9d3d (patch) | |
tree | e4eda1913f42dd1f3715202ded83390048d73344 /phpBB/download | |
parent | 32882fd798ae0fe7e51f5c7ef2ff8501a5b57251 (diff) | |
download | forums-881c74688bc41d83c00db8c96715dc48d06c9d3d.tar forums-881c74688bc41d83c00db8c96715dc48d06c9d3d.tar.gz forums-881c74688bc41d83c00db8c96715dc48d06c9d3d.tar.bz2 forums-881c74688bc41d83c00db8c96715dc48d06c9d3d.tar.xz forums-881c74688bc41d83c00db8c96715dc48d06c9d3d.zip |
[ticket/9694] Call error_reporting() in download/file.php when in avatar mode.
PHPBB3-9694
Diffstat (limited to 'phpBB/download')
-rw-r--r-- | phpBB/download/file.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php index 03a37a58b4..97f4ff3c8a 100644 --- a/phpBB/download/file.php +++ b/phpBB/download/file.php @@ -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)) |