diff --git a/includes/Hooks/PageHooks.php b/includes/Hooks/PageHooks.php index 2ffa6e9f4..bc03dcf01 100644 --- a/includes/Hooks/PageHooks.php +++ b/includes/Hooks/PageHooks.php @@ -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() )