Skip to content

Commit

Permalink
adding hack note
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jul 15, 2010
1 parent 2fd52ed commit acde434
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod/lesson/db/upgrade.php
Expand Up @@ -66,6 +66,7 @@ function xmldb_lesson_upgrade($oldversion) {
}

if ($oldversion < 2008112601) {
//NOTE: this is a hack, we can not call module lib.php in the middle of upgrade, the necessary db structures/data may not exist yet!
require_once($CFG->dirroot.'/mod/lesson/lib.php');

lesson_upgrade_grades();
Expand Down

0 comments on commit acde434

Please sign in to comment.