mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-13866 scale ratings do not work in forum; merged from MOODLE_19_STABLE
This commit is contained in:
parent
4909bff6db
commit
b30f2e92ba
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user