diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index 79d4ecf6a5d..47c0c1cd151 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -698,9 +698,9 @@ class core_renderer extends renderer_base { } $controlshtml = array(); foreach ($controls as $control) { - $controlshtml[] = html_writer::tag('a', array('class' => 'icon', + $controlshtml[] = html_writer::tag('a', html_writer::empty_tag('img', array('src' => $this->pix_url($control['icon'])->out(false), 'alt' => $control['caption'])), - 'title' => $control['caption'], 'href' => $control['url'])); + array('class' => 'icon','title' => $control['caption'], 'href' => $control['url'])); } return html_writer::tag('div', implode('', $controlshtml), array('class' => 'commands')); }