Commit 05df02a0 authored by Ryan Wyllie's avatar Ryan Wyllie
Browse files

MDL-58887 core: fix default title for action menu

Thanks to Michelle Melton <meltonml@appstate.edu> for the original
version of this patch.
parent 4275ea4a
...@@ -4464,7 +4464,9 @@ class action_menu implements renderable, templatable { ...@@ -4464,7 +4464,9 @@ class action_menu implements renderable, templatable {
if ($actionicon instanceof pix_icon) { if ($actionicon instanceof pix_icon) {
$primary->icon = $actionicon->export_for_pix(); $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 { } else {
$primary->iconraw = $actionicon ? $output->render($actionicon) : ''; $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