Skip to content

Commit

Permalink
Removed hardcoded string 'course grades category'
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Sep 5, 2007
1 parent 6ef84f6 commit d61d8c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lang/en_utf8/grades.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
$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';
Expand Down
2 changes: 1 addition & 1 deletion lib/db/upgradelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion lib/grade/grade_category.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ function insert($source=null) {
*/
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;
Expand Down

0 comments on commit d61d8c0

Please sign in to comment.