mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-12-02 12:06:32 +00:00
Don't show new topic tool empty state on existing non-talk pages
Bug: T312599 Change-Id: Ie691498f7b89cb34a414cb8dfae9337f1b706685
This commit is contained in:
parent
131f00c464
commit
34e755c623
|
@ -205,7 +205,7 @@ class PageHooks implements
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if ( HookUtils::isFeatureEnabledForOutput( $output, HookUtils::NEWTOPICTOOL ) ) {
|
if ( HookUtils::isFeatureEnabledForOutput( $output, HookUtils::NEWTOPICTOOL ) ) {
|
||||||
if ( CommentFormatter::isEmptyTalkPage( $text ) ) {
|
if ( CommentFormatter::isEmptyTalkPage( $text ) && $output->getTitle()->isTalkPage() ) {
|
||||||
$output->enableOOUI();
|
$output->enableOOUI();
|
||||||
$text = CommentFormatter::appendToEmptyTalkPage(
|
$text = CommentFormatter::appendToEmptyTalkPage(
|
||||||
$text, $this->getEmptyStateHtml( $output->getContext() )
|
$text, $this->getEmptyStateHtml( $output->getContext() )
|
||||||
|
|
Loading…
Reference in a new issue