mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
Merge branch 'MDL-74498-master' of https://github.com/justusdieckmann/moodle
This commit is contained in:
commit
821ec66490
@ -2112,15 +2112,17 @@ class theme_config {
|
||||
$candidates = [$image];
|
||||
|
||||
if ($type === 'mod') {
|
||||
if ($image === 'icon') {
|
||||
debugging(
|
||||
"The 'icon' image for activity modules has been replaced with a new 'monologo'. " .
|
||||
"Please update your calling code to fetch the new icon where possible. " .
|
||||
"Called for component {$component}.",
|
||||
DEBUG_DEVELOPER
|
||||
);
|
||||
if ($image === 'icon' || $image === 'monologo') {
|
||||
$candidates = ['monologo', 'icon'];
|
||||
if ($image === 'icon') {
|
||||
debugging(
|
||||
"The 'icon' image for activity modules has been replaced with a new 'monologo'. " .
|
||||
"Please update your calling code to fetch the new icon where possible. " .
|
||||
"Called for component {$component}.",
|
||||
DEBUG_DEVELOPER
|
||||
);
|
||||
}
|
||||
}
|
||||
$candidates = ['monologo', 'icon'];
|
||||
}
|
||||
foreach ($candidates as $image) {
|
||||
if ($imagefile = $this->image_exists("$this->dir/pix_plugins/$type/$plugin/$image", $svg)) {
|
||||
|
@ -154,7 +154,7 @@ class core_renderer extends \core_renderer {
|
||||
$heading = $this->page->course->fullname;
|
||||
} else {
|
||||
$heading = $this->page->cm->get_formatted_name();
|
||||
$imagedata = $this->pix_icon('monologo.icon', '', $this->page->activityname, ['class' => 'activityicon']);
|
||||
$imagedata = $this->pix_icon('monologo', '', $this->page->activityname, ['class' => 'activityicon']);
|
||||
$purposeclass = plugin_supports('mod', $this->page->activityname, FEATURE_MOD_PURPOSE);
|
||||
$purposeclass .= ' activityiconcontainer';
|
||||
$purposeclass .= ' modicon_' . $this->page->activityname;
|
||||
|
Loading…
x
Reference in New Issue
Block a user