Unset data-toc in SkinVector

Bug: T302461
Change-Id: I61cf5d3c9016d5997ae56ba18c5eb877e9f68d91
This commit is contained in:
Jon Robson 2022-03-03 10:08:30 -08:00
parent 5192f7a6b7
commit a0d399b1e2
1 changed files with 7 additions and 0 deletions

View File

@ -556,6 +556,13 @@ class SkinVector extends SkinMustache {
$parentData = $this->decoratePortletsData( parent::getTemplateData() );
$featureManager = VectorServices::getFeatureManager();
// SkinVector sometimes serves new Vector as part of removing the
// skin version user preference. TCho avoid T302461 we need to unset it here.
// This shouldn't be run on SkinVector22.
if ( $this->getSkinName() === 'vector' ) {
unset( $parentData['data-toc'] );
}
//
// Naming conventions for Mustache parameters.
//