tweaks
This commit is contained in:
parent
252cb8cb2a
commit
76a91eb769
|
@ -389,7 +389,7 @@ class corecompletioninfo {
|
||||||
// Make sure we provide the current course grade
|
// Make sure we provide the current course grade
|
||||||
$iinfo['grade'] = floatval($iinfo['details']['status']);
|
$iinfo['grade'] = floatval($iinfo['details']['status']);
|
||||||
if($iinfo["grade"] > 0){
|
if($iinfo["grade"] > 0){
|
||||||
$iinfo["grade"] = format_float($iinfo["grade"], 1);
|
$iinfo["grade"] = format_float($iinfo["grade"], 1). "/".format_float(floatval($iinfo['details']['requirement']));
|
||||||
$iinfo["status"] = $completion->is_complete()?"complete-pass":"complete-fail";
|
$iinfo["status"] = $completion->is_complete()?"complete-pass":"complete-fail";
|
||||||
if ($cinfo["status"] == "incomplete"){
|
if ($cinfo["status"] == "incomplete"){
|
||||||
$cinfo["status"] = "progress";
|
$cinfo["status"] = "progress";
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
$plugin->component = 'local_treestudyplan'; // Recommended since 2.0.2 (MDL-26035). Required since 3.0 (MDL-48494)
|
$plugin->component = 'local_treestudyplan'; // Recommended since 2.0.2 (MDL-26035). Required since 3.0 (MDL-48494)
|
||||||
$plugin->version = 2023070200; // YYYYMMDDHH (year, month, day, iteration)
|
$plugin->version = 2023070400; // YYYYMMDDHH (year, month, day, iteration)
|
||||||
$plugin->requires = 2021051700; // YYYYMMDDHH (This is the release version for Moodle 3.11)
|
$plugin->requires = 2021051700; // YYYYMMDDHH (This is the release version for Moodle 3.11)
|
||||||
|
|
||||||
$plugin->dependencies = [
|
$plugin->dependencies = [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user