mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Restored a glovbal declaration for SESSION (to make sortoder work again)
This commit is contained in:
parent
06954a036c
commit
63d6efa23e
@ -250,6 +250,9 @@ class grade_report_grader extends grade_report {
|
|||||||
* for displaying grades.
|
* for displaying grades.
|
||||||
*/
|
*/
|
||||||
function setup_sortitemid() {
|
function setup_sortitemid() {
|
||||||
|
|
||||||
|
global $SESSION;
|
||||||
|
|
||||||
if ($this->sortitemid) {
|
if ($this->sortitemid) {
|
||||||
if (!isset($SESSION->gradeuserreport->sort)) {
|
if (!isset($SESSION->gradeuserreport->sort)) {
|
||||||
$this->sortorder = $SESSION->gradeuserreport->sort = 'ASC';
|
$this->sortorder = $SESSION->gradeuserreport->sort = 'ASC';
|
||||||
@ -500,16 +503,16 @@ class grade_report_grader extends grade_report {
|
|||||||
|
|
||||||
|
|
||||||
if ($type == 'filler' or $type == 'fillerfirst' or $type == 'fillerlast') {
|
if ($type == 'filler' or $type == 'fillerfirst' or $type == 'fillerlast') {
|
||||||
$headerhtml .= '<td class="'.$type.$catlevel.'" '.$colspan.'> </td>';
|
$headerhtml .= '<th class="'.$type.$catlevel.'" '.$colspan.'> </th>';
|
||||||
} else if ($type == 'category') {
|
} else if ($type == 'category') {
|
||||||
$headerhtml .= '<td class="category'.$catlevel.'" '.$colspan.'>'.$element['object']->get_name();
|
$headerhtml .= '<th class="category'.$catlevel.'" '.$colspan.'>'.$element['object']->get_name();
|
||||||
|
|
||||||
// Print icons
|
// Print icons
|
||||||
if ($USER->gradeediting) {
|
if ($USER->gradeediting) {
|
||||||
$headerhtml .= $this->get_icons($element);
|
$headerhtml .= $this->get_icons($element);
|
||||||
}
|
}
|
||||||
|
|
||||||
$headerhtml .= '</td>';
|
$headerhtml .= '</th>';
|
||||||
} else {
|
} else {
|
||||||
if ($element['object']->id == $this->sortitemid) {
|
if ($element['object']->id == $this->sortitemid) {
|
||||||
if ($this->sortorder == 'ASC') {
|
if ($this->sortorder == 'ASC') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user