From c8eb1fae64d5e216f5c477645bcbf8f9705a028d Mon Sep 17 00:00:00 2001 From: Dave Cooper Date: Tue, 14 Oct 2014 17:08:02 +0800 Subject: [PATCH] MDL-47560 Grades: Unset config when gradebook upgrade acknowledged. --- grade/lib.php | 2 +- lang/en/grades.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/grade/lib.php b/grade/lib.php index 50b1c5551d9..d33be8662e1 100644 --- a/grade/lib.php +++ b/grade/lib.php @@ -464,7 +464,7 @@ function grade_get_graded_users_select($report, $course, $userid, $groupid, $inc * @param int $courseid The current course id. */ function hide_natural_aggregation_upgrade_notice($courseid) { - set_config('show_sumofgrades_upgrade_' . $courseid, false); + unset_config('show_sumofgrades_upgrade_' . $courseid); } /** diff --git a/lang/en/grades.php b/lang/en/grades.php index 118d3663db4..1e33c2568f9 100644 --- a/lang/en/grades.php +++ b/lang/en/grades.php @@ -670,8 +670,8 @@ $string['studentsperpagereduced'] = 'Reduced maximum students per page from {$a- $string['subcategory'] = 'Normal category'; $string['submissions'] = 'Submissions'; $string['submittedon'] = 'Submitted: {$a}'; -$string['sumofgradesupgradedgrades'] = 'A recent upgrade has changed the aggregation method "Sum of grades" to "Natural". Please review the grades in this course as it was previously using "Sum of grades".'; -$string['sumofgradesupgradedgradeshidemessage'] = 'Got it'; +$string['sumofgradesupgradedgrades'] = 'Note: The aggregation method "Sum of grades" has been changed to "Natural" as part of a site upgrade. Since "Sum of grades" was previously used in this course, it is recommended that you review this change in the gradebook.'; +$string['sumofgradesupgradedgradeshidemessage'] = 'OK'; $string['switchtofullview'] = 'Switch to full view'; $string['switchtosimpleview'] = 'Switch to simple view'; $string['tabs'] = 'Tabs';