From f4ed6fc4b41523c76ca002a179febe607d5330cf Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Fri, 19 Feb 2010 06:57:55 +0000 Subject: [PATCH] output MDL-20204 Fixed regression with block editing controls --- lib/outputrenderers.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')); }