projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2061e59
)
lesson upgrade: My guess at how to fix the regressions from MDL-17101.
author
tjhunt
<tjhunt>
Mon, 9 Mar 2009 03:11:29 +0000
(
03:11
+0000)
committer
tjhunt
<tjhunt>
Mon, 9 Mar 2009 03:11:29 +0000
(
03:11
+0000)
mod/lesson/db/upgrade.php
patch
|
blob
|
history
diff --git
a/mod/lesson/db/upgrade.php
b/mod/lesson/db/upgrade.php
index 4aaf389b0ae0a05ee8d43b21f7633cda97fc28a1..d4580087537296fb918f8b80ffde642911d90365 100644
(file)
--- a/
mod/lesson/db/upgrade.php
+++ b/
mod/lesson/db/upgrade.php
@@
-47,10
+47,8
@@
function xmldb_lesson_upgrade($oldversion) {
if ($result && $oldversion < 2008112601) {
require_once($CFG->dirroot.'/mod/lesson/lib.php');
- // too much debug output
- $DB->set_debug(false);
- lesson_update_grades();
- $DB->set_debug(true);
+
+ lesson_upgrade_grades();
upgrade_mod_savepoint($result, 2008112601, 'lesson');
}