diff --git a/src/ChameleonTemplate.php b/src/ChameleonTemplate.php index 499a2e5..cab7c51 100644 --- a/src/ChameleonTemplate.php +++ b/src/ChameleonTemplate.php @@ -43,21 +43,7 @@ class ChameleonTemplate extends BaseTemplate { * @throws \MWException */ public function execute() { - $skin = $this->getSkin(); - $skinOptions = method_exists( $skin, 'getOptions' ) ? $skin->getOptions() : []; - // TODO: Remove $bodyOnly when dropping < MW 1.39 support. - $bodyOnly = $skinOptions['bodyOnly'] ?? false; - // output the head element - // The headelement defines the tag itself, it shouldn't be included in the html text - // To add attributes or classes to the body tag use OutputPageBodyAttributes hook - if ( !$bodyOnly ) { - $this->html( 'headelement' ); - } echo $this->getSkin()->getComponentFactory()->getRootComponent()->getHtml(); - if ( !$bodyOnly ) { - $this->printTrail(); - echo "\n"; - } } /** diff --git a/src/Hooks/SetupAfterCache.php b/src/Hooks/SetupAfterCache.php index 85cc2d2..eeb403c 100644 --- a/src/Hooks/SetupAfterCache.php +++ b/src/Hooks/SetupAfterCache.php @@ -243,8 +243,7 @@ function () { return new Chameleon( [ 'name' => 'chameleon', - 'styles' => $styles, - 'bodyOnly' => version_compare( $this->configuration['wgVersion'], '1.39', '>=' ), + 'styles' => $styles ] ); } ); }