Skip to content

Commit

Permalink
MDL-21695 help/grade/aggregateonlygraded.html
Browse files Browse the repository at this point in the history
AMOS BEGIN
 HLP grade/aggregateonlygraded.html,[aggregateonlygraded_help,core_grades]
AMOS END
  • Loading branch information
mudrd8mz committed May 18, 2010
1 parent 1dc28ba commit c8d463d
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion admin/settings/grades.php
Expand Up @@ -97,7 +97,7 @@

$defaults = array('value'=>1, 'forced'=>false, 'adv'=>true);
$temp->add(new admin_setting_gradecat_combo('grade_aggregateonlygraded', get_string('aggregateonlygraded', 'grades'),
get_string('aggregateonlygradedhelp', 'grades'), $defaults, $options));
get_string('aggregateonlygraded_help', 'grades'), $defaults, $options));
$defaults = array('value'=>0, 'forced'=>false, 'adv'=>true);
$temp->add(new admin_setting_gradecat_combo('grade_aggregateoutcomes', get_string('aggregateoutcomes', 'grades'),
get_string('aggregateoutcomeshelp', 'grades'), $defaults, $options));
Expand Down
2 changes: 1 addition & 1 deletion grade/edit/tree/category_form.php
Expand Up @@ -53,7 +53,7 @@ function definition() {
}

$mform->addElement('checkbox', 'aggregateonlygraded', get_string('aggregateonlygraded', 'grades'));
$mform->setHelpButton('aggregateonlygraded', array('aggregateonlygraded', get_string('aggregateonlygraded', 'grades'),'grade'), true);
$mform->addHelpButton('aggregateonlygraded', 'aggregateonlygraded', 'grades');
$mform->disabledIf('aggregateonlygraded', 'aggregation', 'eq', GRADE_AGGREGATE_SUM);

if ((int)$CFG->grade_aggregateonlygraded_flag & 2) {
Expand Down
2 changes: 1 addition & 1 deletion grade/edit/tree/lib.php
Expand Up @@ -814,7 +814,7 @@ public function get_header_cell() {
$headercell = clone($this->headercell);
$headercell->style .= 'width: 40px;';
$headercell->text = get_string('aggregateonlygraded', 'grades')
. $OUTPUT->old_help_icon('aggregateonlygraded', 'aggregateonlygraded', 'grade');
. $OUTPUT->help_icon('aggregateonlygraded', 'grade');
return $headercell;
}

Expand Down
1 change: 0 additions & 1 deletion lang/en/grades.php
Expand Up @@ -44,7 +44,6 @@
$string['aggregateonlygraded_help'] = 'An empty grade is a grade which is missing from the gradebook. It may be from an assignment submission which has not yet been graded or from a quiz which has not yet been attempted etc.
This setting determines whether empty grades are not included in the aggregation or are counted as minimal grades, for example 0 for an assignment graded between 0 and 100.';
$string['aggregateonlygradedhelp'] = 'Nonexistent grades are either treated as minimal grades or not included in aggregation.';
$string['aggregateoutcomes'] = 'Include outcomes in aggregation';
$string['aggregateoutcomes_help'] = 'If enabled, outcomes are included in the aggregation. This may result in an unexpected category total.';
$string['aggregateoutcomeshelp'] = 'Including outcomes in aggregation may not lead to the desired overall grade, so you have the option to include or leave them out.';
Expand Down
2 changes: 0 additions & 2 deletions lang/en/help/grade/aggregateonlygraded.html

This file was deleted.

0 comments on commit c8d463d

Please sign in to comment.