From 9a9b501187ae8d9c04ed7122d50478c7266ad94b Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 24 Sep 2007 11:11:48 +0000 Subject: [PATCH] MDL-11422 fixed duplicate title attribute --- grade/lib.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/grade/lib.php b/grade/lib.php index d12da72936..bb70c97ed9 100644 --- a/grade/lib.php +++ b/grade/lib.php @@ -1053,7 +1053,7 @@ class grade_tree { if ($element['object']->is_hidden()) { $icon = 'show'; - $tooltip = ''; + $tooltip = $strshow; if ($element['type'] != 'category' and $element['object']->get_hidden() > 1) { // Change the icon and add a tooltip showing the date $icon = 'hiddenuntil'; @@ -1063,8 +1063,7 @@ class grade_tree { $url = $CFG->wwwroot.'/grade/edit/tree/action.php?id='.$this->courseid.'&action=show&sesskey='.sesskey() . '&eid='.$element['eid']; $url = $gpr->add_url_params($url); - $action = ''
-                     . $strshow.''; + $action = ''.$strshow.''; } else { $url = $CFG->wwwroot.'/grade/edit/tree/action.php?id='.$this->courseid.'&action=hide&sesskey='.sesskey() @@ -1092,7 +1091,7 @@ class grade_tree { if ($element['object']->is_locked()) { $icon = 'unlock'; - $tooltip = ''; + $tooltip = $strunlock; if ($element['type'] != 'category' and $element['object']->get_locktime() > 1) { // Change the icon and add a tooltip showing the date $icon = 'locktime'; @@ -1105,9 +1104,7 @@ class grade_tree { $url = $CFG->wwwroot.'/grade/edit/tree/action.php?id='.$this->courseid.'&action=unlock&sesskey='.sesskey() . '&eid='.$element['eid']; $url = $gpr->add_url_params($url); - $action = ''.$strunlock
-                     . ''; + $action = ''.$strunlock.''; } else { if (!has_capability('moodle/grade:manage', $this->context) and !has_capability('moodle/grade:lock', $this->context)) { -- 2.39.5