MDL-69956 forum: throw exception when advanced grading is not ready

This commit is contained in:
Dongsheng Cai 2021-04-08 22:38:42 +10:00
parent a5f0b354e7
commit 9e1dacc3c6
3 changed files with 8 additions and 0 deletions

View file

@ -95,3 +95,4 @@ $string['templatetypeown'] = 'Own form';
$string['templatetypeshared'] = 'Shared template';
$string['templatesource'] = 'Location: {$a->component} ({$a->area})';
$string['error:notinrange'] = 'Invalid grade \'{$a->grade}\' provided. Grades must be between 0 and {$a->maxgrade}.';
$string['error:gradingunavailable'] = 'The advanced grading method is not correctly set. Please check the whole forum grading options in the forum settings.';