diff --git a/includes/TimelessTemplate.php b/includes/TimelessTemplate.php index 64c2f54..b9b9ce9 100644 --- a/includes/TimelessTemplate.php +++ b/includes/TimelessTemplate.php @@ -23,8 +23,6 @@ class TimelessTemplate extends BaseTemplate { */ public function execute() { $this->sidebar = $this->getSidebar(); - $this->pileOfTools = $this->getPageTools(); - $userLinks = $this->getUserLinks(); // WikiBase sidebar thing if ( isset( $this->sidebar['wikibase-otherprojects'] ) ) { @@ -37,6 +35,9 @@ class TimelessTemplate extends BaseTemplate { unset( $this->sidebar['coll-print_export'] ); } + $this->pileOfTools = $this->getPageTools(); + $userLinks = $this->getUserLinks(); + // Open html, body elements, etc $html = $this->get( 'headelement' ); @@ -723,7 +724,7 @@ class TimelessTemplate extends BaseTemplate { 'id' => 'ca-more', 'class' => 'dropdown-toggle' ]; - if ( $this->data['language_urls'] !== false || $this->pileOfTools['variants'] + if ( $this->data['language_urls'] !== false || $sortedPileOfTools['variants'] || isset( $this->otherProjects ) ) { $pileOfTools['languages'] = [ 'text' => $this->getMsg( 'timeless-languages' )->escaped(), diff --git a/resources/screen-desktop.less b/resources/screen-desktop.less index 02de4f5..a406c95 100644 --- a/resources/screen-desktop.less +++ b/resources/screen-desktop.less @@ -169,7 +169,7 @@ div.mw-notification-area { } } -.client-nojs #ca-languages:hover .dropdown { +.client-nojs #p-variants-desktop:hover .dropdown { display: block !important; }