mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
db-upgrade MDL-24487 Fixed incorrect parentcontext when upgrading.
This commit is contained in:
parent
da8970797f
commit
20770c9f51
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user