Skip to content

Commit

Permalink
GH-171: Bugfix: Icons backwards compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
WunderJacob committed Apr 23, 2024
1 parent 276f389 commit 9f85e6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function adele_delete_instance($id) {
* @param cm_info $cm The course module information object.
*/
function mod_adele_cm_info_view(cm_info $cm) {
global $DB, $PAGE, $USER, $OUTPUT;
global $DB, $PAGE, $USER, $OUTPUT, $CFG;
$learningpathmod = $DB->get_record(
'adele',
[
Expand All @@ -135,7 +135,7 @@ function mod_adele_cm_info_view(cm_info $cm) {
'learningpath' => $learningpathmod->learningpathid,
'userlist' => $learningpathmod->userlist,
'view' => "teacher",
'version' => moodle_major_version(),
'version' => $CFG->version,
]);
} else {
$html = '<div style="background-color: #f8d7da; border: 1px solid #f5c6cb; border-radius: 5px;
Expand All @@ -154,7 +154,7 @@ function mod_adele_cm_info_view(cm_info $cm) {
'learningpath' => $learningpathmod->learningpathid,
'userlist' => $learningpathmod->userlist,
'view' => "student",
'version' => moodle_major_version(),
'version' => $CFG->version,
]);
} else {
$html = '<div style="background-color: #f8d7da; border: 1px solid #f5c6cb; border-radius: 5px;
Expand Down
4 changes: 2 additions & 2 deletions view.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
'learningpath' => $learningpath->learningpathid,
'userlist' => $learningpath->userlist,
'view' => "teacher",
'version' => moodle_major_version(),
'version' => $CFG->version,
]);
} else {
echo <<<EOT
Expand All @@ -107,7 +107,7 @@
'learningpath' => $learningpath->learningpathid,
'userlist' => $learningpath->userlist,
'view' => "student",
'version' => moodle_major_version(),
'version' => $CFG->version,
]);
} else {
echo <<<EOT
Expand Down

0 comments on commit 9f85e6c

Please sign in to comment.