mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
blocks upgrade: MDL-20820 Problem found and fixed by Oleg Sychev.
This commit is contained in:
parent
93d3a2506b
commit
35fb85a7da
@ -2030,7 +2030,7 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
|
||||
$stickyblocks = $DB->get_recordset('block_pinned_old');
|
||||
foreach ($stickyblocks as $stickyblock) {
|
||||
$newblock = new object();
|
||||
$newblock->blockname = $blocks[$stickyblock]->name;
|
||||
$newblock->blockname = $blocks[$stickyblock->blockid]->name;
|
||||
$newblock->contextid = $syscontext->id;
|
||||
$newblock->showinsubcontexts = 1;
|
||||
switch ($stickyblock->pagetype) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user