From 346354bf390a88b4c4e81ba7ac81553763aa6994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Sat, 24 Jul 2021 11:38:35 +0200 Subject: [PATCH] Switch away from deprecated grade to gradeverb string resolves #408. --- mod/kalvidassign/renderer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/kalvidassign/renderer.php b/mod/kalvidassign/renderer.php index 7b71c906..f64570ef 100644 --- a/mod/kalvidassign/renderer.php +++ b/mod/kalvidassign/renderer.php @@ -366,7 +366,7 @@ public function col_status($data) { $buttontext = get_string('update'); } else { $class = 's0'; - $buttontext = get_string('grade'); + $buttontext = get_string_manager()->string_exists('gradeverb', 'moodle') ? get_string('gradeverb') : get_string('grade'); } if (!$submitted) {