mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 00:13:36 +00:00
Merge "Only show the mobile add topic button on view pages"
This commit is contained in:
commit
7106233d59
|
@ -217,6 +217,7 @@ class PageHooks implements
|
|||
}
|
||||
|
||||
if (
|
||||
$req->getRawVal( 'action', 'view' ) === 'view' &&
|
||||
HookUtils::isFeatureEnabledForOutput( $output, HookUtils::NEWTOPICTOOL ) &&
|
||||
// Only add the button if "New section" tab would be shown in a normal skin.
|
||||
HookUtils::shouldShowNewSectionTab( $output->getContext() )
|
||||
|
|
Loading…
Reference in a new issue