Merge "Fix languages/variants stuff some more"

isekai
jenkins-bot 5 years ago committed by Gerrit Code Review
commit bde37bd025

@ -23,8 +23,6 @@ class TimelessTemplate extends BaseTemplate {
*/ */
public function execute() { public function execute() {
$this->sidebar = $this->getSidebar(); $this->sidebar = $this->getSidebar();
$this->pileOfTools = $this->getPageTools();
$userLinks = $this->getUserLinks();
// WikiBase sidebar thing // WikiBase sidebar thing
if ( isset( $this->sidebar['wikibase-otherprojects'] ) ) { if ( isset( $this->sidebar['wikibase-otherprojects'] ) ) {
@ -37,6 +35,9 @@ class TimelessTemplate extends BaseTemplate {
unset( $this->sidebar['coll-print_export'] ); unset( $this->sidebar['coll-print_export'] );
} }
$this->pileOfTools = $this->getPageTools();
$userLinks = $this->getUserLinks();
// Open html, body elements, etc // Open html, body elements, etc
$html = $this->get( 'headelement' ); $html = $this->get( 'headelement' );
@ -723,7 +724,7 @@ class TimelessTemplate extends BaseTemplate {
'id' => 'ca-more', 'id' => 'ca-more',
'class' => 'dropdown-toggle' 'class' => 'dropdown-toggle'
]; ];
if ( $this->data['language_urls'] !== false || $this->pileOfTools['variants'] if ( $this->data['language_urls'] !== false || $sortedPileOfTools['variants']
|| isset( $this->otherProjects ) ) { || isset( $this->otherProjects ) ) {
$pileOfTools['languages'] = [ $pileOfTools['languages'] = [
'text' => $this->getMsg( 'timeless-languages' )->escaped(), 'text' => $this->getMsg( 'timeless-languages' )->escaped(),

@ -169,7 +169,7 @@ div.mw-notification-area {
} }
} }
.client-nojs #ca-languages:hover .dropdown { .client-nojs #p-variants-desktop:hover .dropdown {
display: block !important; display: block !important;
} }

Loading…
Cancel
Save