mirror of
https://github.com/moodle/moodle.git
synced 2025-03-20 07:30:01 +01:00
Merge branch 'MDL-77105-401-4' of https://github.com/junpataleta/moodle into MOODLE_401_STABLE
This commit is contained in:
commit
7f6888bd53
@ -1809,7 +1809,8 @@ class cm_info implements IteratorAggregate {
|
||||
// Determine whether the icon will be filtered in the CSS.
|
||||
// This can be controlled by the module by declaring a 'filtericon' custom data.
|
||||
// If the 'filtericon' custom data is not set, icon filtering will be determined whether the module has a `monologo` icon.
|
||||
$filtericon = $this->customdata['filtericon'] ?? $ismonologo;
|
||||
// Additionally, we need to cast custom data to array as some modules may treat it as an object.
|
||||
$filtericon = ((array)$this->customdata)['filtericon'] ?? $ismonologo;
|
||||
if ($filtericon) {
|
||||
$icon->param('filtericon', 1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user