From 52350b63dd41d4edaf4e466885a34bc275d1efee 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 e1ea48f9..ac2de826 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) {