MDL-55796 core: Do not escape pix_icon URLs

Part of MDL-55071
This commit is contained in:
Frederic Massart
2016-09-23 10:55:15 +01:00
committed by Dan Poltawski
parent e119bf6f2b
commit ee9dd6a278
+1 -1
View File
@@ -597,7 +597,7 @@ class pix_icon implements renderable, templatable {
*/
public function export_for_template(renderer_base $output) {
$attributes = $this->attributes;
$attributes['src'] = $output->pix_url($this->pix, $this->component);
$attributes['src'] = $output->pix_url($this->pix, $this->component)->out(false);
$templatecontext = array();
foreach ($attributes as $name => $value) {
$templatecontext[] = array('name' => $name, 'value' => $value);