gradebook MDL-24455 moved printing of page header until after all of the potential redirect points to avoid a warning being printed before redirecting.

This commit is contained in:
Andrew Davis
2010-10-01 03:54:59 +00:00
parent 6b15734d56
commit 76ea4e1f67
+2 -2
View File
@@ -229,8 +229,6 @@ if ($current_view != '') {
}
}
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
@@ -320,6 +318,8 @@ if ($data = data_submitted() and confirm_sesskey()) {
}
}
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');