MDL-13866 scale ratings do not work in forum; merged from MOODLE_19_STABLE

This commit is contained in:
skodak 2008-03-10 10:46:42 +00:00
parent 4909bff6db
commit b30f2e92ba
2 changed files with 9 additions and 9 deletions

View File

@ -32,14 +32,6 @@ function xmldb_forum_upgrade($oldversion=0) {
/// $result = result of "/lib/ddllib.php" function calls
/// }
if ($result && $oldversion < 2007072200) {
require_once($CFG->dirroot.'/mod/forum/lib.php');
// too much debug output
$db->debug = false;
forum_update_grades();
$db->debug = true;
}
if ($result && $oldversion < 2007101000) {
/// Define field timemodified to be added to forum_queue
@ -51,6 +43,14 @@ function xmldb_forum_upgrade($oldversion=0) {
$result = $result && add_field($table, $field);
}
if ($result and $oldversion < 2007101510) {
//MDL-13866 - send forum ratins to gradebook again
require_once($CFG->dirroot.'/mod/forum/lib.php');
// too much debug output
$db->debug = false;
forum_update_grades();
$db->debug = true;
}
return $result;
}

View File

@ -5,7 +5,7 @@
// This fragment is called by /admin/index.php
////////////////////////////////////////////////////////////////////////////////
$module->version = 2007101509;
$module->version = 2007101510;
$module->requires = 2007101509; // Requires this Moodle version
$module->cron = 60;