Merge "Don't run OutputPageBeforeHTML for the talkpageheader"

This commit is contained in:
jenkins-bot 2022-11-18 09:26:10 +00:00 committed by Gerrit Code Review
commit 06aa46df34

View file

@ -180,6 +180,10 @@ class PageHooks implements
// But that hook doesn't provide parameters that we need to render correctly
// (including the page title, interface language, and current user).
if ( strpos( $text, "class=\"mw-talkpageheader\"" ) !== false ) {
return;
}
$isMobile = false;
if ( ExtensionRegistry::getInstance()->isLoaded( 'MobileFrontend' ) ) {
$mobFrontContext = MediaWikiServices::getInstance()->getService( 'MobileFrontend.Context' );