diff --git a/lib/outputcomponents.php b/lib/outputcomponents.php index 285c768ffe5..92f0bf66cfe 100644 --- a/lib/outputcomponents.php +++ b/lib/outputcomponents.php @@ -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);