mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-16 05:34:01 +02:00
Merge branch '3.3.x'
This commit is contained in:
@@ -23,7 +23,7 @@ class local extends \phpbb\avatar\driver\driver
|
||||
*/
|
||||
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();
|
||||
$root_path = $this->path_helper->get_web_root_path();
|
||||
|
||||
return array(
|
||||
'src' => $root_path . $this->config['avatar_gallery_path'] . '/' . $row['avatar'],
|
||||
|
@@ -153,6 +153,11 @@ class path_helper
|
||||
return $this->web_root_path;
|
||||
}
|
||||
|
||||
if (defined('PHPBB_USE_BOARD_URL_PATH') && PHPBB_USE_BOARD_URL_PATH)
|
||||
{
|
||||
return $this->web_root_path = generate_board_url() . '/';
|
||||
}
|
||||
|
||||
// We do not need to escape $path_info, $request_uri and $script_name because we can not find their content in the result.
|
||||
// Path info (e.g. /foo/bar)
|
||||
$path_info = filesystem_helper::clean_path($this->symfony_request->getPathInfo());
|
||||
|
@@ -155,7 +155,7 @@ class renderer implements \phpbb\textformatter\renderer_interface
|
||||
/**
|
||||
* @see smiley_text()
|
||||
*/
|
||||
$root_path = (defined('PHPBB_USE_BOARD_URL_PATH') && PHPBB_USE_BOARD_URL_PATH) ? generate_board_url() . '/' : $path_helper->get_web_root_path();
|
||||
$root_path = $path_helper->get_web_root_path();
|
||||
|
||||
$this->set_smilies_path($root_path . $config['smilies_path']);
|
||||
}
|
||||
|
Reference in New Issue
Block a user