mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-12010 Added preferences to config table
This commit is contained in:
parent
13b1072464
commit
4a129c473b
@ -25,7 +25,7 @@
|
||||
|
||||
require_once("../config.php");
|
||||
require_once("../lib/gradelib.php");
|
||||
|
||||
grade_grab_grades();
|
||||
$courseid = required_param('id'); // course id
|
||||
$report = optional_param('report', 'user', PARAM_FILE); // course id
|
||||
$edit = optional_param('edit', -1, PARAM_BOOL); // sticky editting mode
|
||||
|
@ -1172,6 +1172,22 @@ function xmldb_main_upgrade($oldversion=0) {
|
||||
/// Launch add key gradeid
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
// This is compared against the values stored in the database to determine
|
||||
// whether upgrades should be performed (see lib/db/*.php)
|
||||
|
||||
$version = 2007063001; // YYYYMMDD = date
|
||||
$version = 2007070300; // YYYYMMDD = date
|
||||
// XY = increments within a single day
|
||||
|
||||
$release = '1.9 dev'; // Human-friendly version name
|
||||
|
Loading…
x
Reference in New Issue
Block a user