/** * Prepare warnings for mobile output * @param BaseTemplate $tpl */ protected function prepareWarnings(BaseTemplate $tpl) { $out = $this->getOutput(); if ($out->getRequest()->getText('oldid')) { $tpl->set('_old_revision_warning', MinervaUI::warningBox($this->getOldRevisionHtml())); } }