Merge "Only show the mobile add topic button on view pages"

This commit is contained in:
jenkins-bot 2023-03-24 00:37:12 +00:00 committed by Gerrit Code Review
commit 7106233d59

View file

@ -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() )