Closed (outdated)
Project:
Drupal core
Version:
6.12
Component:
language system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Jun 2009 at 02:16 UTC
Updated:
2 Mar 2016 at 22:18 UTC
Jump to comment: Most recent
Comments
Comment #1
linuxxguy commentedOops... forgot that <ul> and <li> are not encoded in the post. Coffee not had taken effect, should have previewed, duh. OK, it should be:
In a block which renders a flat menu, the <ul> tag should be given the CSS class "menu", and all the <li> tags should be given the class "leaf". It appears this is not done with the language switcher block.
...
if ($block->module == 'locale') {
// standard block rendering doesn't include these classes
$block->content = str_replace('<ul>', '<ul class="menu">',
str_replace('<li class="', '<li class="leaf ', $block->content)
);
}