mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-58887 core: fix default title for action menu
Thanks to Michelle Melton <meltonml@appstate.edu> for the original version of this patch.
This commit is contained in:
parent
4275ea4a43
commit
05df02a0ec
@ -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) : '';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user