[ticket/14285] Remove no longer needed root_path

PHPBB3-14285
This commit is contained in:
Marc Alexander 2021-05-27 22:23:36 +02:00
parent 551004a209
commit fca636ed58
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -83,8 +83,6 @@ class upload extends \phpbb\avatar\driver\driver
*/ */
public function get_data($row) public function get_data($row)
{ {
$root_path = (defined('PHPBB_USE_BOARD_URL_PATH') && PHPBB_USE_BOARD_URL_PATH) ? generate_board_url() . '/' : $this->path_helper->get_web_root_path();
return array( return array(
'src' => $this->controller_helper->route('phpbb_storage_avatar', ['file' => $row['avatar']]), 'src' => $this->controller_helper->route('phpbb_storage_avatar', ['file' => $row['avatar']]),
'width' => $row['avatar_width'], 'width' => $row['avatar_width'],