Do not duplicate categories in primary action tabs space

In Timeless, they are already added in the sidebar.

Bug: T300100
Change-Id: I055fb98878ae7643c298b9d45a9f31ac1ba0735d
isekai
Ammarpad 3 years ago
parent f4f3073c7f
commit 424900cacb

@ -844,7 +844,14 @@ class TimelessTemplate extends BaseTemplate {
// Tools specific to the page // Tools specific to the page
$pileOfEditTools = []; $pileOfEditTools = [];
foreach ( $this->data['content_navigation'] as $navKey => $navBlock ) { $contentNavigation = $this->data['content_navigation'];
// T300100: Do not use categories here. Already added to sidebar
unset(
$contentNavigation['category-normal'],
$contentNavigation['category-hidden']
);
foreach ( $contentNavigation as $navKey => $navBlock ) {
// Just use namespaces items as they are // Just use namespaces items as they are
if ( $navKey == 'namespaces' ) { if ( $navKey == 'namespaces' ) {
if ( $namespace < 0 && count( $navBlock ) < 2 ) { if ( $namespace < 0 && count( $navBlock ) < 2 ) {

Loading…
Cancel
Save