Merge branch 'MDL-60373-master' of git://github.com/andrewnicols/moodle
authorDavid Monllao <davidm@moodle.com>
Mon, 16 Oct 2017 16:28:47 +0000 (18:28 +0200)
committerDavid Monllao <davidm@moodle.com>
Mon, 16 Oct 2017 16:28:47 +0000 (18:28 +0200)
lib/templates/pix_icon_fontawesome.mustache

index df700c5..7f95b6c 100644 (file)
@@ -43,7 +43,7 @@
 
 }}
 {{^unmappedIcon}}
-<i class="icon fa {{key}} fa-fw {{extraclasses}}" aria-hidden="true" title="{{title}}" aria-label="{{alt}}"></i>
+<i class="icon fa {{key}} fa-fw {{extraclasses}}" aria-hidden="true" {{#title}}title="{{title}}"{{/title}} aria-label="{{alt}}"></i>
 {{/unmappedIcon}}
 {{#unmappedIcon}}
 {{! We cannot include the pix_icon template directly here because we don't have all the mustache helpers loaded. }}