mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 16:34:21 +00:00
Merge "Don't run OutputPageBeforeHTML for the talkpageheader"
This commit is contained in:
commit
06aa46df34
|
@ -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' );
|
||||
|
|
Loading…
Reference in a new issue