MDL-57284 boost: Fix booktool_print icons
This commit is contained in:
committed by
Dan Poltawski
parent
d4feb70e17
commit
2fbe4fca87
@@ -732,6 +732,10 @@ class core_renderer extends \core_renderer {
|
||||
if ($menuitem->action) {
|
||||
if ($menuitem->action instanceof action_link) {
|
||||
$link = $menuitem->action;
|
||||
// Give preference to setting icon over action icon.
|
||||
if (!empty($menuitem->icon)) {
|
||||
$link->icon = $menuitem->icon;
|
||||
}
|
||||
} else {
|
||||
$link = new action_link($menuitem->action, $menuitem->text, null, null, $menuitem->icon);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user