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:
parent
7fd843cd89
commit
3f7d1e3601
|
@ -197,7 +197,9 @@ class SkinMinerva extends SkinTemplate {
|
||||||
$title = $this->getTitle();
|
$title = $this->getTitle();
|
||||||
|
|
||||||
// If it's a talk page, add a link to the main namespace page
|
// 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
|
// if it's a talk page for which we have a special message, use it
|
||||||
switch ( $title->getNamespace() ) {
|
switch ( $title->getNamespace() ) {
|
||||||
case NS_USER_TALK:
|
case NS_USER_TALK:
|
||||||
|
|
Loading…
Reference in New Issue