Skip to content

Commit

Permalink
MDL-13895 incorrect title and alt on grade edit icon in gradebook rep…
Browse files Browse the repository at this point in the history
…orts; merged from MOODLE_19_STABLE
  • Loading branch information
skodak committed Mar 11, 2008
1 parent 093c15b commit 05aba80
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions grade/lib.php
Expand Up @@ -933,11 +933,11 @@ function get_edit_icon($element, $gpr) {
}
}

static $stredit = null;
static $strfeedback = null;
if (is_null($stredit)) {
$stredit = get_string('edit');
$strfeedback = get_string('feedback');
static $strfeedback = null;
static $streditgrade = null;
if (is_null($streditgrade)) {
$streditgrade = get_string('editgrade', 'grades');
$strfeedback = get_string('feedback');
}

$strparams = $this->get_params_for_iconstr($element);
Expand Down Expand Up @@ -967,6 +967,7 @@ function get_edit_icon($element, $gpr) {
break;

case 'grade':
$stredit = $streditgrade;
if (empty($object->id)) {
$url = $CFG->wwwroot.'/grade/edit/tree/grade.php?courseid='.$this->courseid.'&itemid='.$object->itemid.'&userid='.$object->userid;
} else {
Expand Down

0 comments on commit 05aba80

Please sign in to comment.