Open root/phpbb/avatar/driver/upload.php
Find
Tip: This may be a partial find and not the whole line.
Tip: Replace the preceding line(s) to find with the following line(s).
Tip: This may be a partial find and not the whole line.
Code: Select all
Replace with public function get_data($row, $ignore_config = false)
{
return array(
'src' => $this->path_helper->get_web_root_path() . 'download/file.' . $this->php_ext . '?avatar=' . $row['avatar'],
'width' => $row['avatar_width'],
'height' => $row['avatar_height'],
);
}
Tip: Replace the preceding line(s) to find with the following line(s).
Code: Select all
public function get_data($row, $ignore_config = false)
{
$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(
'src' => $root_path . 'download/file.' . $this->php_ext . '?avatar=' . $row['avatar'],
'width' => $row['avatar_width'],
'height' => $row['avatar_height'],
);
}