Merge branch 'MDL-62680-master' of git://github.com/damyon/moodle
[moodle.git] / lib / classes / output / icon_system_fontawesome.php
index 0ed5355..cb46366 100644 (file)
@@ -446,6 +446,9 @@ class icon_system_fontawesome extends icon_system_font {
         if (!$subpix->is_mapped()) {
             $data['unmappedIcon'] = $icon->export_for_template($output);
         }
+        if (isset($icon->attributes['aria-hidden'])) {
+            $data['aria-hidden'] = $icon->attributes['aria-hidden'];
+        }
         return $output->render_from_template('core/pix_icon_fontawesome', $data);
     }