Skip to content

Commit 65906ad

Browse files
committed
Add fallback icons
1 parent 09227f3 commit 65906ad

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Contao/Widgets/MultiColumnWizard.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1766,10 +1766,11 @@ protected function generateButtonString($level = 0)
17661766

17671767
$btnName = \sprintf('tw_r%s', StringUtil::specialchars($button));
17681768
// Get a fallback icon if not found in the core.
1769-
if ('' === ($icon
1770-
= Image::getHtml($image, $GLOBALS['TL_LANG']['MSC'][$btnName], 'class="tl_listwizard_img"'))) {
1771-
$icon
1772-
= Image::getHtml(
1769+
if (
1770+
'' === ($icon
1771+
= Image::getHtml($image, $GLOBALS['TL_LANG']['MSC'][$btnName], 'class="tl_listwizard_img"'))
1772+
) {
1773+
$icon = Image::getHtml(
17731774
'bundles/multicolumnwizard/img/' . $image,
17741775
$GLOBALS['TL_LANG']['MSC'][$btnName],
17751776
'class="tl_listwizard_img"'

0 commit comments

Comments
 (0)