diff --git a/includes/TimelessTemplate.php b/includes/TimelessTemplate.php index 7637fb1..0812c62 100644 --- a/includes/TimelessTemplate.php +++ b/includes/TimelessTemplate.php @@ -12,7 +12,6 @@ use File; use Html; use Linker; use MediaWiki\MediaWikiServices; -use MWDebug; use ResourceLoaderSkinModule; use Sanitizer; use SpecialPage; @@ -58,10 +57,7 @@ class TimelessTemplate extends BaseTemplate { $this->pileOfTools = $this->getPageTools(); $userLinks = $this->getUserLinks(); - // Open html, body elements, etc - $html = $this->get( 'headelement' ); - - $html .= Html::openElement( 'div', [ 'id' => 'mw-wrapper', 'class' => $userLinks['class'] ] ); + $html = Html::openElement( 'div', [ 'id' => 'mw-wrapper', 'class' => $userLinks['class'] ] ); $html .= Html::rawElement( 'div', [ 'id' => 'mw-header-container', 'class' => 'ts-container' ], Html::rawElement( 'div', [ 'id' => 'mw-header', 'class' => 'ts-inner' ], @@ -112,15 +108,6 @@ class TimelessTemplate extends BaseTemplate { $html .= Html::closeElement( 'div' ); - // BaseTemplate::printTrail() stuff (has no get version) - // Required for RL to run - $html .= MWDebug::getDebugHTML( $this->getSkin()->getContext() ); - $html .= $this->get( 'bottomscripts' ); - $html .= $this->get( 'reporttime' ); - - $html .= Html::closeElement( 'body' ); - $html .= Html::closeElement( 'html' ); - // The unholy echo echo $html; } diff --git a/skin.json b/skin.json index e075091..ff4d9f2 100644 --- a/skin.json +++ b/skin.json @@ -8,7 +8,7 @@ "license-name": "GPL-2.0-or-later", "type": "skin", "requires": { - "MediaWiki": ">= 1.38" + "MediaWiki": ">= 1.39" }, "ValidSkinNames": { "timeless": { @@ -17,6 +17,7 @@ "args": [ { "name": "timeless", + "bodyOnly": true, "template": "MediaWiki\\Skin\\Timeless\\TimelessTemplate", "responsive": true, "styles": [