Skip to content

Commit

Permalink
gradebook MDL-24455 moved printing of page header until after all of …
Browse files Browse the repository at this point in the history
…the potential redirect points to avoid a warning being printed before redirecting.
  • Loading branch information
Andrew Davis committed Oct 1, 2010
1 parent 6b15734 commit 76ea4e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grade/edit/tree/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,6 @@
}
}

print_grade_page_head($courseid, 'edittree', $current_view, get_string('categoriesedit', 'grades') . ': ' . $current_view_str);

//if we go straight to the db to update an element we need to recreate the tree as
// $grade_edit_tree has already been constructed.
//Ideally we could do the updates through $grade_edit_tree to avoid recreating it
Expand Down Expand Up @@ -320,6 +318,8 @@
}
}

print_grade_page_head($courseid, 'edittree', $current_view, get_string('categoriesedit', 'grades') . ': ' . $current_view_str);

// Print Table of categories and items
echo $OUTPUT->box_start('gradetreebox generalbox');

Expand Down

0 comments on commit 76ea4e1

Please sign in to comment.