Skip to content

Commit

Permalink
MDL-58887 core: fix default title for action menu
Browse files Browse the repository at this point in the history
Thanks to Michelle Melton <meltonml@appstate.edu> for the original
version of this patch.
  • Loading branch information
ryanwyllie committed Nov 22, 2017
1 parent 4275ea4 commit 05df02a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/outputcomponents.php
Expand Up @@ -4464,7 +4464,9 @@ public function export_for_template(renderer_base $output) {

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) : '';
}
Expand Down

0 comments on commit 05df02a

Please sign in to comment.