output MDL-20204 Fixed regression with block editing controls

This commit is contained in:
Sam Hemelryk
2010-02-19 06:57:55 +00:00
parent 3ac3223eb7
commit f4ed6fc4b4
+2 -2
View File
@@ -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'));
}