Skip to content

Commit 4554671

Browse files
authored
[4.0] Hard coded spaces (#32244)
It's 2021 and we really should be using css and not spaces for layout. This example PR is for the language layout and replaces the hard coded space with the correct css class of me-1. (because of the new BS5 classes this is RTL aware)
1 parent daf71d2 commit 4554671

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/joomla/content/language.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121
elseif ($item->language_image)
2222
{
23-
echo HTMLHelper::_('image', 'mod_languages/' . $item->language_image . '.gif', '', null, true) . ' ' . htmlspecialchars($item->language_title, ENT_COMPAT, 'UTF-8');
23+
echo HTMLHelper::_('image', 'mod_languages/' . $item->language_image . '.gif', '', array('class' => 'me-1'), true) . htmlspecialchars($item->language_title, ENT_COMPAT, 'UTF-8');
2424
}
2525
elseif ($item->language_title)
2626
{

0 commit comments

Comments
 (0)