Return to link is not needed in AMC mode on talk pages

The tabs render this unnecessary

Bug: T212216
Change-Id: Ibb19448529a43bb542eb112ff3b113ca0c3749a4
This commit is contained in:
jdlrobson 2019-02-26 10:24:42 -08:00
parent 7fd843cd89
commit 3f7d1e3601

View file

@ -197,7 +197,9 @@ class SkinMinerva extends SkinTemplate {
$title = $this->getTitle();
// If it's a talk page, add a link to the main namespace page
if ( $title->isTalkPage() ) {
// In AMC we do not need to do this as there is an easy way back to the article page
// via the talk/article tabs.
if ( $title->isTalkPage() && !$this->getSkinOption( self::OPTION_AMC ) ) {
// if it's a talk page for which we have a special message, use it
switch ( $title->getNamespace() ) {
case NS_USER_TALK: