Skip to content

Commit

Permalink
fixed bug #28716: Imprint-Page is missing a title.
Browse files Browse the repository at this point in the history
  • Loading branch information
alex40724 committed Nov 23, 2020
1 parent 719e4a6 commit ea31585
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
21 changes: 6 additions & 15 deletions Services/Imprint/classes/class.ilImprintGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,31 +113,22 @@ public function postOutputProcessing($a_output)

return $a_output;
}

protected function renderFullscreen()
{
$tpl = $this->tpl;
$lng = $this->lng;
$ilMainMenu = $this->main_menu;


if (!ilImprint::isActive()) {
ilUtil::redirect("ilias.php?baseClass=ilDashboardGUI");
}

$tpl->setTitle($lng->txt("imprint"));
$tpl->loadStandardTemplate();

$this->setRawPageContent(true);
$html = $this->showPage();

$itpl = new ilTemplate("tpl.imprint.html", true, true, "Services/Imprint");
$itpl->setVariable("PAGE_TITLE", $lng->txt("imprint"));
$itpl->setVariable("IMPRINT", $html);
unset($html);

$tpl->setContent($itpl->get());

$ilMainMenu->showLogoOnly(true);

$tpl->setContent($html);

$tpl->printToStdout("DEFAULT", true, false);
exit();
}
Expand Down
2 changes: 0 additions & 2 deletions Services/Imprint/templates/default/tpl.imprint.html

This file was deleted.

0 comments on commit ea31585

Please sign in to comment.