Skip to content

Commit

Permalink
bootstrap adjustments for Moodle 4.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
TamaroWalter committed Mar 11, 2024
1 parent 140bef2 commit bb98d33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/tables/userstats_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,10 @@ public function col_coursereputation($row) {
*/
private function badge_render($number) {
if ($number > 0) {
return \html_writer::tag('h5', \html_writer::start_span('badge badge-success') .
return \html_writer::tag('h5', \html_writer::start_span('badge bg-success') .
$number . \html_writer::end_span());
} else {
return \html_writer::tag('h5', \html_writer::start_span('badge badge-warning') .
return \html_writer::tag('h5', \html_writer::start_span('badge bg-warning') .
$number . \html_writer::end_span());
}
}
Expand Down
1 change: 1 addition & 0 deletions locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1446,6 +1446,7 @@ function moodleoverflow_print_post($post, $discussion, $moodleoverflow, $cm, $co
$mustachedata->withinreviewperiod = $reviewable;

// Prepare the post.
// TODO: Deprecated $courseiddonotuse deprecated course id, use context option instead.
$mustachedata->postcontent = format_text($post->message, $post->messageformat, $options, $course->id);

// Load the attachments.
Expand Down

0 comments on commit bb98d33

Please sign in to comment.