MDL-12010 Added preferences to config table

This commit is contained in:
nicolasconnault 2007-07-03 18:41:31 +00:00
parent 13b1072464
commit 4a129c473b
3 changed files with 18 additions and 2 deletions

View File

@ -25,7 +25,7 @@
require_once("../config.php"); require_once("../config.php");
require_once("../lib/gradelib.php"); require_once("../lib/gradelib.php");
grade_grab_grades();
$courseid = required_param('id'); // course id $courseid = required_param('id'); // course id
$report = optional_param('report', 'user', PARAM_FILE); // course id $report = optional_param('report', 'user', PARAM_FILE); // course id
$edit = optional_param('edit', -1, PARAM_BOOL); // sticky editting mode $edit = optional_param('edit', -1, PARAM_BOOL); // sticky editting mode

View File

@ -1172,6 +1172,22 @@ function xmldb_main_upgrade($oldversion=0) {
/// Launch add key gradeid /// Launch add key gradeid
add_key($table, $key); add_key($table, $key);
} }
if ($result && $oldversion < 2007070300) {
set_config('grade_report_aggregationview', '0');
set_config('grade_report_aggregationposition', '0');
set_config('grade_report_bulkcheckboxes', '1');
set_config('grade_report_gradedisplaytype', '0');
set_config('grade_report_enableajax', '1');
set_config('grade_report_showeyecons', '1');
set_config('grade_report_showgroups', '1');
set_config('grade_report_showlocks', '1');
set_config('grade_report_shownotes', '1');
set_config('grade_report_showscales', '1');
set_config('grade_report_studentsperpage', '20');
set_config('grade_report_feedbackformat', '0');
}
return $result; return $result;
} }

View File

@ -6,7 +6,7 @@
// This is compared against the values stored in the database to determine // This is compared against the values stored in the database to determine
// whether upgrades should be performed (see lib/db/*.php) // whether upgrades should be performed (see lib/db/*.php)
$version = 2007063001; // YYYYMMDD = date $version = 2007070300; // YYYYMMDD = date
// XY = increments within a single day // XY = increments within a single day
$release = '1.9 dev'; // Human-friendly version name $release = '1.9 dev'; // Human-friendly version name