@ -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->p ileOfTools['variants']
if ( $this->data['language_urls'] !== false || $sortedP ileOfTools['variants']
|| isset( $this->otherProjects ) ) {
$pileOfTools['languages'] = [
'text' => $this->getMsg( 'timeless-languages' )->escaped(),