mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 22:38:52 +00:00
[ticket/16604] Adjust filesystem service dependency injection placement
PHPBB3-16604
This commit is contained in:
parent
4698d20fb4
commit
d80367c5fc
1 changed files with 1 additions and 2 deletions
|
@ -512,8 +512,6 @@ class acp_board
|
||||||
|
|
||||||
if ($mode == 'avatar' && $cfg_array['allow_avatar_upload'])
|
if ($mode == 'avatar' && $cfg_array['allow_avatar_upload'])
|
||||||
{
|
{
|
||||||
$filesystem = $phpbb_container->get('filesystem');
|
|
||||||
|
|
||||||
// If avatar uploading is enabled but the path setting is empty,
|
// If avatar uploading is enabled but the path setting is empty,
|
||||||
// config variable validation is bypassed. Catch the case here
|
// config variable validation is bypassed. Catch the case here
|
||||||
if (!$cfg_array['avatar_path'])
|
if (!$cfg_array['avatar_path'])
|
||||||
|
@ -522,6 +520,7 @@ class acp_board
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
$filesystem = $phpbb_container->get('filesystem');
|
||||||
$avatar_path_exists = $filesystem->exists($phpbb_root_path . $cfg_array['avatar_path']);
|
$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']);
|
$avatar_path_writable = $filesystem->is_writable($phpbb_root_path . $cfg_array['avatar_path']);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue