Skip to content

Commit

Permalink
Update lw-courses for Moodle39
Browse files Browse the repository at this point in the history
  • Loading branch information
luukverhoeven committed Mar 17, 2021
1 parent a618fcb commit d218cf7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -650,12 +650,12 @@ private function enrolment_duration($course) {
$days = $dtF->diff($dtT)->format('%a');

if ($days >= 30) {
return '<span class="badge badge-default"> ' . get_string('enrolmentsends', 'block_lw_courses')
return '<span class="badge badge-secondary"> ' . get_string('enrolmentsends', 'block_lw_courses')
. ' ' . (($days > 1) ? $days . ' ' . get_string('days') : $days . ' ' . get_string('day')) . '</span>';
}

if ($days < 30) {
return '<span class="badge badge-red"> ' . get_string('enrolmentsends', 'block_lw_courses')
return '<span class="badge badge-danger"> ' . get_string('enrolmentsends', 'block_lw_courses')
. ' ' . (($days > 1) ? $days . ' ' . get_string('days') : $days . ' ' . get_string('day')) . '</span>';
}

Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
// Make sure they don't update this plugin, custom changes
// https://github.com/MFreakNL/moodle-block_lw_courses
// Works in Moodle 3.5
$plugin->version = 2022041203; // The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2021031700; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2018050800; // Requires this Moodle version.
$plugin->component = 'block_lw_courses'; // Full name of the plugin (used for diagnostics).
$plugin->maturity = MATURITY_STABLE;
$plugin->release = 'v1.6.0';
$plugin->release = 'v1.6.0';

0 comments on commit d218cf7

Please sign in to comment.