Commit d470de67 authored by jun's avatar jun
Browse files

Merge branch 'MDL-58887-master' of git://github.com/ryanwyllie/moodle

parents 29abde47 05df02a0
......@@ -4464,7 +4464,9 @@ class action_menu implements renderable, templatable {
if ($actionicon instanceof pix_icon) {
$primary->icon = $actionicon->export_for_pix();
$primary->title = !empty($actionicon->attributes['alt']) ? $this->actionicon->attributes['alt'] : '';
if (!empty($actionicon->attributes['alt'])) {
$primary->title = $actionicon->attributes['alt'];
}
} else {
$primary->iconraw = $actionicon ? $output->render($actionicon) : '';
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment