Merge "If the Overflow menu is visible, don't render user links"

This commit is contained in:
jenkins-bot 2019-07-04 20:49:03 +00:00 committed by Gerrit Code Review
commit c6b9bcb468

View file

@ -559,6 +559,7 @@ class SkinMinerva extends SkinTemplate {
} }
return Html::rawElement( 'h1', [ 'id' => 'section_0' ], $heading ); return Html::rawElement( 'h1', [ 'id' => 'section_0' ], $heading );
} }
/** /**
* Create and prepare header and footer content * Create and prepare header and footer content
* @param BaseTemplate $tpl * @param BaseTemplate $tpl
@ -568,7 +569,10 @@ class SkinMinerva extends SkinTemplate {
$user = $this->getUser(); $user = $this->getUser();
$out = $this->getOutput(); $out = $this->getOutput();
$tpl->set( 'taglinehtml', $this->getTaglineHtml() ); $tpl->set( 'taglinehtml', $this->getTaglineHtml() );
if ( $this->getUserPageHelper()->isUserPage() ) { if ( $this->getUserPageHelper()->isUserPage() &&
// when overflow menu is visible, we don't need to build secondary options
// as most of options are visible on Toolbar/Overflow menu
!$this->skinOptions->get( SkinOptions::OPTION_OVERFLOW_SUBMENU ) ) {
$pageUser = $this->getUserPageHelper()->getPageUser(); $pageUser = $this->getUserPageHelper()->getPageUser();
$talkPage = $pageUser->getTalkPage(); $talkPage = $pageUser->getTalkPage();
$data = [ $data = [