Skip to content

Commit

Permalink
Update TimelessTemplate.php
Browse files Browse the repository at this point in the history
  • Loading branch information
TranTheTrung authored May 26, 2021
1 parent 517c734 commit 491e051
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions skins/Timeless/includes/TimelessTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ protected function getPortlet( $name, $content, $msg = null, $setOptions = [] )
], $setOptions );

// Handle the different $msg possibilities
if ( $name == '' ) {
if ( $name == 'navigation' ) {
$msgString = '';
else {
if ( $msg === null ) {
Expand Down Expand Up @@ -256,7 +256,7 @@ protected function getPortlet( $name, $content, $msg = null, $setOptions = [] )
$bodyDivOptions['id'] = $options['body-id'];
}

if ($name == '') {
if ($name == 'navigation') {
$html = Html::rawElement( 'div', $divOptions,
Html::rawElement( 'div', $bodyDivOptions,
$contentText .
Expand Down Expand Up @@ -342,9 +342,6 @@ protected function getMainNavigation() {
}
// Numeric strings gets an integer when set as key, cast back - T73639
$name = (string)$name;
if ( $name == 'navigation' ) {
$name = '';
}
if ( $name == 'TOOLBOX' ) {
$html .= $this->getUserLinks();
$html .= $this->getPortlet( 'actions', $this->pileOfTools['page-primary']);
Expand Down

0 comments on commit 491e051

Please sign in to comment.