MDL-12517 - Further refinement. Move the processing to after print_header, so any notices do not break XHTML strict. Merged from MOODLE_19_STABLE.

This commit is contained in:
tjhunt
2007-12-13 14:26:14 +00:00
parent 0a2c84851c
commit 0cfabab671
2 changed files with 8 additions and 10 deletions
+6 -8
View File
@@ -121,11 +121,6 @@ if (!empty($target) && !empty($action) && confirm_sesskey()) {
// Initialise the grader report object
$report = new grade_report_grader($courseid, $gpr, $context, $page, $sortitemid);
/// processing posted grades & feedback here
if ($data = data_submitted() and confirm_sesskey()) {
$report->process_data($data);
}
// Override perpage if set in URL
if ($perpageurl) {
$report->user_prefs['studentsperpage'] = $perpageurl;
@@ -133,7 +128,6 @@ if ($perpageurl) {
$report->load_users();
$numusers = $report->get_numusers();
$report->load_final_grades();
@@ -149,10 +143,14 @@ $currenttab = 'graderreport';
require('tabs.php');
echo $report->group_selector;
echo '<div class="clearer"></div>';
echo $report->get_toggles_html();
/// processing posted grades & feedback here
if ($data = data_submitted() and confirm_sesskey()) {
$report->process_data($data);
}
$studentsperpage = $report->get_pref('studentsperpage');
// Don't use paging if studentsperpage is empty or 0 at course AND site levels
if (!empty($studentsperpage)) {
+2 -2
View File
@@ -267,7 +267,7 @@ $string['itemsedit'] = 'Edit grade item';
$string['keephigh'] = 'Keep the highest';
$string['keephighhelp'] = 'If set, this option will only keep the X highest grades, X being the selected value for this option.';
$string['keymanager'] = 'Key manager';
$string['lessthanmin'] = 'grade entered for $a->itemname for $a->username is less than the minimum allowed';
$string['lessthanmin'] = 'The grade entered for $a->itemname for $a->username is less than the minimum allowed';
$string['lettergrade'] = 'Letter grade';
$string['lettergradenonnumber'] = 'Low and/or High grade were non-numeric for';
$string['letter'] = 'Letter';
@@ -294,7 +294,7 @@ $string['median'] = 'Median';
$string['min'] = 'Lowest';
$string['missingscale'] = 'Scale must be selected';
$string['mode'] = 'Mode';
$string['morethanmax'] = 'grade entered for $a->itemname for $a->username is more than the maximum allowed';
$string['morethanmax'] = 'The grade entered for $a->itemname for $a->username is more than the maximum allowed';
$string['movingelement'] = 'Moving $a';
$string['multfactor'] = 'Multiplicator';
$string['multfactorhelp'] = 'Factor by which all grades for this grade item will be multiplied.';