mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-09-23 18:28:58 +00:00
refactor(core): ♻️ reset sidebar index after for loop
This commit is contained in:
parent
f08f640240
commit
33e37f5857
|
@ -69,8 +69,6 @@ final class Drawer extends Partial {
|
|||
// Remove toolbox since it is handled by page tools
|
||||
case 'p-tb': {
|
||||
unset( $sidebarData['array-portlets-rest'][$i] );
|
||||
// Reset index after unsetting toolbox
|
||||
$sidebarData['array-portlets-rest'] = array_values( $sidebarData['array-portlets-rest'] );
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -82,6 +80,9 @@ final class Drawer extends Partial {
|
|||
}
|
||||
}
|
||||
|
||||
// Reset index after unsetting toolbox
|
||||
$sidebarData['array-portlets-rest'] = array_values( $sidebarData['array-portlets-rest'] );
|
||||
|
||||
return $sidebarData;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue