mirror of
https://github.com/moodle/moodle.git
synced 2025-03-23 17:10:20 +01:00
outputlib MDL-20103 neater version of Jerome's fix.
This commit is contained in:
parent
d60a7bc20f
commit
2c5ec833bc
@ -1005,10 +1005,8 @@ class moodle_core_renderer extends moodle_renderer_base {
|
||||
$lis = array();
|
||||
foreach ($items as $key => $string) {
|
||||
$item = $this->output_start_tag('li', array('class' => 'r' . $row));
|
||||
if ($icons) {
|
||||
if (key_exists($key, $icons)) { //test if the content has an assigned icon
|
||||
$item .= $this->output_tag('div', array('class' => 'icon column c0'), $icons[$key]);
|
||||
}
|
||||
if (!empty($icons[$key])) { //test if the content has an assigned icon
|
||||
$item .= $this->output_tag('div', array('class' => 'icon column c0'), $icons[$key]);
|
||||
}
|
||||
$item .= $this->output_tag('div', array('class' => 'column c1'), $string);
|
||||
$item .= $this->output_end_tag('li');
|
||||
|
Loading…
x
Reference in New Issue
Block a user