Removed hardcoded string 'course grades category'
This commit is contained in:
@@ -90,6 +90,7 @@ $string['configshowuserimage'] = 'Whether to show the user\'s profile image next
|
||||
$string['configstudentsperpage'] = 'The number of students to display per page in the grader report.';
|
||||
$string['configstudentsperpagedefault'] = 'The number of students to display per page in the grader report. Leave this field empty to use the site default (currently $a).';
|
||||
$string['contract'] = 'Contract Category';
|
||||
$string['coursegradecategory'] = 'Course grade category';
|
||||
$string['coursename'] = 'Course name';
|
||||
$string['coursetotal'] = 'Course total';
|
||||
$string['createcategory'] = 'Create Category';
|
||||
|
||||
@@ -39,7 +39,7 @@ function upgrade_18_gradebook($courseid) {
|
||||
// create course category
|
||||
$course_category = new object();
|
||||
$course_category->courseid = $courseid;
|
||||
$course_category->fullname = 'course grade category';
|
||||
$course_category->fullname = get_string('coursegradecategory', 'grades');
|
||||
$course_category->parent = null;
|
||||
$course_category->aggregation = GRADE_AGGREGATE_MEAN_ALL;
|
||||
$course_category->timemodified = $course_category->timecreated = time();
|
||||
|
||||
@@ -284,7 +284,7 @@ class grade_category extends grade_object {
|
||||
*/
|
||||
function insert_course_category($courseid) {
|
||||
$this->courseid = $courseid;
|
||||
$this->fullname = 'course grade category';
|
||||
$this->fullname = get_string('coursegradecategory', 'grades');
|
||||
$this->path = null;
|
||||
$this->parent = null;
|
||||
$this->aggregate = GRADE_AGGREGATE_MEAN_ALL;
|
||||
|
||||
Reference in New Issue
Block a user