Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
18a00359
Commit
18a00359
authored
Apr 30, 2009
by
skodak
Browse files
MDL-19029 fixed incorrect closing of divs on grader report; merged from MOODLE_19_STABLE
parent
ad310aa4
Changes
2
Hide whitespace changes
Inline
Side-by-side
grade/report/grader/index.php
View file @
18a00359
...
...
@@ -166,7 +166,8 @@ $reporthtml .= $report->get_studentshtml();
$reporthtml
.
=
$report
->
get_rangehtml
();
$reporthtml
.
=
$report
->
get_avghtml
(
true
);
$reporthtml
.
=
$report
->
get_avghtml
();
$reporthtml
.
=
"</tbody></table></div></div>"
;
$reporthtml
.
=
$report
->
get_endhtml
();
$reporthtml
.
=
'</div>'
;
// print submit button
if
(
$USER
->
gradeediting
[
$course
->
id
]
and
!
$report
->
get_pref
(
'enableajax'
))
{
...
...
grade/report/grader/lib.php
View file @
18a00359
...
...
@@ -1074,6 +1074,21 @@ class grade_report_grader extends grade_report {
return
$studentshtml
;
}
/**
* Closes all open elements
*/
public
function
get_endhtml
()
{
global
$CFG
,
$USER
;
$fixedstudents
=
empty
(
$USER
->
screenreader
)
&&
$CFG
->
grade_report_fixedstudents
;
if
(
$fixedstudents
)
{
return
"</tbody></table></div>"
;
}
else
{
return
"</tbody></table>"
;
}
}
/**
* Builds and return the HTML row of column totals.
* @param bool $grouponly Whether to return only group averages or all averages.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment