Only move special page namespace caction to sidebar if only one

As in, it's not associated with an actual page with a talkpage and stuff.

Change-Id: I22dcea00efe27011881529f4b2d9dce1642f294d
isekai
Isarra 6 years ago
parent f0fc1a4362
commit ba13e4513a

@ -691,7 +691,7 @@ class TimelessTemplate extends BaseTemplate {
foreach ( $this->data['content_navigation'] as $navKey => $navBlock ) {
// Just use namespaces items as they are
if ( $navKey == 'namespaces' ) {
if ( $namespace < 0 ) {
if ( $namespace < 0 && count( $navBlock ) < 2 ) {
// Put special page ns_pages in the more pile so they're not so lonely
$sortedPileOfTools['page-tertiary'] = $navBlock;
} else {

Loading…
Cancel
Save