1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-19 15:22:08 +02:00

[ticket/16604] Adjust filesystem service dependency injection placement

PHPBB3-16604
This commit is contained in:
rxu 2020-09-24 23:48:57 +07:00
parent 4698d20fb4
commit d80367c5fc
No known key found for this signature in database
GPG Key ID: 955F0567380E586A

View File

@ -512,8 +512,6 @@ class acp_board
if ($mode == 'avatar' && $cfg_array['allow_avatar_upload'])
{
$filesystem = $phpbb_container->get('filesystem');
// If avatar uploading is enabled but the path setting is empty,
// config variable validation is bypassed. Catch the case here
if (!$cfg_array['avatar_path'])
@ -522,6 +520,7 @@ class acp_board
}
else
{
$filesystem = $phpbb_container->get('filesystem');
$avatar_path_exists = $filesystem->exists($phpbb_root_path . $cfg_array['avatar_path']);
$avatar_path_writable = $filesystem->is_writable($phpbb_root_path . $cfg_array['avatar_path']);