From a67f2cf0864643be7468080252cd8ef141cba560 Mon Sep 17 00:00:00 2001 From: rubencm Date: Thu, 27 May 2021 00:53:39 +0200 Subject: [PATCH] [ticket/14285] Remove no longer needed variable PHPBB3-14285 --- phpBB/phpbb/avatar/driver/upload.php | 2 +- tests/template/extension_test.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/phpBB/phpbb/avatar/driver/upload.php b/phpBB/phpbb/avatar/driver/upload.php index 0e0fe9e8a5..6ef3c50623 100644 --- a/phpBB/phpbb/avatar/driver/upload.php +++ b/phpBB/phpbb/avatar/driver/upload.php @@ -86,7 +86,7 @@ class upload extends \phpbb\avatar\driver\driver $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 . $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'], 'height' => $row['avatar_height'], ); diff --git a/tests/template/extension_test.php b/tests/template/extension_test.php index d6e181259f..156c7e2563 100644 --- a/tests/template/extension_test.php +++ b/tests/template/extension_test.php @@ -150,7 +150,7 @@ class phpbb_template_extension_test extends phpbb_template_template_test_case ], [], [], - 'foo', + 'foo', [] ], [ @@ -168,7 +168,7 @@ class phpbb_template_extension_test extends phpbb_template_template_test_case ], [], [], - 'foo', + 'foo', [] ], [