db-upgrade MDL-24487 Fixed incorrect parentcontext when upgrading.

This commit is contained in:
Sam Hemelryk 2010-10-03 07:45:03 +00:00
parent da8970797f
commit 20770c9f51

View File

@ -3616,7 +3616,7 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
// No default exist there yet, let's put a few into My Moodle so it's useful.
$blockinstance = new stdClass;
$blockinstance->parentcontextid = SITEID;
$blockinstance->parentcontextid = SYSCONTEXTID;
$blockinstance->showinsubcontexts = 0;
$blockinstance->pagetypepattern = 'my-index';
$blockinstance->subpagepattern = $mypage->id;