Skip to content

Commit

Permalink
Bug fixes - KICK-184.
Browse files Browse the repository at this point in the history
  • Loading branch information
vasanthlmsace committed Nov 8, 2024
1 parent 494990a commit b57ea89
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion classes/events.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ public static function course_section_created($event) {
$sectiondata[$name] = get_config('format_designer', $name);
}
}
if (!defined('NO_OUTPUT_BUFFERING') || (defined('NO_OUTPUT_BUFFERING') && !NO_OUTPUT_BUFFERING)) {
if (!defined('NO_OUTPUT_BUFFERING') || (defined('NO_OUTPUT_BUFFERING') && !NO_OUTPUT_BUFFERING)
&& (!defined('AJAX_SCRIPT') || AJAX_SCRIPT == '0')) {
$format->update_section_format_options($sectiondata);
}
}
Expand Down
2 changes: 1 addition & 1 deletion classes/output/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ public static function criteria_progress($course, $userid) {
}
}

$percent = ($completed / $count) * 100;
$percent = ($count > 0) ? (($completed / $count) * 100) : 0;
$completioncriteriahtml = '';
$uncompletioncriteriahtml = '';

Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2024073100; // The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2024110800; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2020061500; // Requires this Moodle version.
$plugin->component = 'format_designer'; // Full name of the plugin (used for diagnostics).
$plugin->release = 'Version 1.6';
Expand Down

0 comments on commit b57ea89

Please sign in to comment.