[ticket/15538] Update 404 source path to all/imgs

PHPBB3-15538
This commit is contained in:
mrgoldy 2019-11-27 21:01:29 +01:00
parent 5a1be4611c
commit ac2b95c1fa
2 changed files with 3 additions and 3 deletions

View file

@ -142,7 +142,7 @@ class icon extends \Twig\Extension\AbstractExtension
$base_path = $board_url ? generate_board_url() . '/' : $environment->get_web_root_path(); $base_path = $board_url ? generate_board_url() . '/' : $environment->get_web_root_path();
} }
$source = "{$base_path}styles/chameleon/theme/icons/png/404.png"; $source = "{$base_path}styles/all/imgs/icons/png/404.png";
$type = 'png'; $type = 'png';
$icon = '404'; $icon = '404';
} }

View file

@ -386,7 +386,7 @@ class phpbb_template_extension_test extends phpbb_template_template_test_case
[ [
'ICON_USER' => 'User icon', 'ICON_USER' => 'User icon',
], ],
'<img class="o-icon o-icon-png png-404 my-class" src="phpBB/styles/chameleon/theme/icons/png/404.png" alt="User icon" />', '<img class="o-icon o-icon-png png-404 my-class" src="phpBB/styles/all/imgs/icons/png/404.png" alt="User icon" />',
], ],
/** SVG: default */ /** SVG: default */
[ [
@ -439,7 +439,7 @@ class phpbb_template_extension_test extends phpbb_template_template_test_case
'attributes' => [], 'attributes' => [],
], ],
[], [],
'<img class="o-icon o-icon-png png-404" src="phpBB/styles/chameleon/theme/icons/png/404.png" alt="Just a title" />', '<img class="o-icon o-icon-png png-404" src="phpBB/styles/all/imgs/icons/png/404.png" alt="Just a title" />',
], ],
/** SVG: Sanitization */ /** SVG: Sanitization */
[ [