mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Merge branch 'MDL-49389' of git://github.com/timhunt/moodle
This commit is contained in:
commit
e201bf16a0
@ -1599,8 +1599,10 @@ class block_manager {
|
||||
if ($bestgap < $newweight) {
|
||||
$newweight = floor($newweight);
|
||||
for ($weight = $bestgap + 1; $weight <= $newweight; $weight++) {
|
||||
foreach ($usedweights[$weight] as $biid) {
|
||||
$this->reposition_block($biid, $newregion, $weight - 1);
|
||||
if (array_key_exists($weight, $usedweights)) {
|
||||
foreach ($usedweights[$weight] as $biid) {
|
||||
$this->reposition_block($biid, $newregion, $weight - 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->reposition_block($block->instance->id, $newregion, $newweight);
|
||||
|
Loading…
x
Reference in New Issue
Block a user