* Wrap the body text with language information and identifiable element
*
* @param Title $title
+ * @param string $html body text
* @return string html
*/
protected function wrapHTML( $title, $html ) {
$tpl->set( 'indicators', $out->getIndicators() );
$tpl->set( 'sitenotice', $this->getSiteNotice() );
- $tpl->set( 'bottomscripts', $this->bottomScripts() );
$tpl->set( 'printfooter', $this->printSource() );
// Wrap the bodyText with #mw-content-text element
$out->mBodytext = $this->wrapHTML( $title, $out->mBodytext );
// See Skin::afterContentHook() for further documentation.
$tpl->set( 'dataAfterContent', $this->afterContentHook() );
+ // Do this last in case hooks above add bottom scripts
+ $tpl->set( 'bottomscripts', $this->bottomScripts() );
+
return $tpl;
}