From ca44c299ddf4d710cbb6e9f1e656270cfd1a82d7 Mon Sep 17 00:00:00 2001
From: Alexander Bias <alexander.bias@uni-ulm.de>
Date: Tue, 6 Mar 2018 20:29:54 +0100
Subject: [PATCH] Activity icons should be rendered with image_icon() and not
 with pix_icon anymore

---
 CHANGES.md                       | 1 +
 block_course_overview_campus.php | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGES.md b/CHANGES.md
index d967dbb..67e3089 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -6,6 +6,7 @@ Changes
 
 ### Unreleased
 
+* 2018-03-06 - Activity icons should be rendered with image_icon() and not with pix_icon anymore.
 * 2018-03-06 - pix_url() is deprecated in Moodle 3.3, change to pix_icon() and fontawesome icons.
 * 2017-12-12 - Prepare compatibility for Moodle 3.3, no functionality change.
 
diff --git a/block_course_overview_campus.php b/block_course_overview_campus.php
index d040c81..cec0ad9 100644
--- a/block_course_overview_campus.php
+++ b/block_course_overview_campus.php
@@ -1323,7 +1323,7 @@ class block_course_overview_campus extends block_base {
                         foreach ($coursenews[$c->id] as $modname => $html) {
                             echo '<div class="coc-module">';
                                 // Output activity icon.
-                                echo $OUTPUT->pix_icon('icon', $modname, 'mod_'.$modname, array('class' => 'iconlarge activityicon'));
+                                echo $OUTPUT->image_icon('icon', $modname, 'mod_'.$modname, array('class' => 'iconlarge activityicon'));
 
                                 // Output activity introduction string.
                                 if (get_string_manager()->string_exists("activityoverview", $modname)) {
-- 
GitLab