mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-09-23 18:38:18 +00:00
Merge "Treat user talk subpages like normal talk pages in empty state text"
This commit is contained in:
commit
6c5461d858
|
@ -260,7 +260,7 @@ class PageHooks implements
|
|||
$descParams = [];
|
||||
$buttonMsg = 'discussiontools-emptystate-button';
|
||||
$title = $context->getTitle();
|
||||
if ( $title->getNamespace() == NS_USER_TALK ) {
|
||||
if ( $title->getNamespace() == NS_USER_TALK && !$title->isSubpage() ) {
|
||||
// This is a user talk page
|
||||
$isIP = $this->userNameUtils->isIP( $title->getText() );
|
||||
if ( $title->equals( $output->getUser()->getTalkPage() ) ) {
|
||||
|
|
Loading…
Reference in a new issue