aboutsummaryrefslogtreecommitdiff
path: root/lib/include
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2023-03-20 09:58:00 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2023-03-20 09:58:00 +0000
commit4b14ddef2396875f3c90552d4e37cd0b69dcc755 (patch)
tree7d108ca840fe79776ccc3334b462f8ce2646e8e6 /lib/include
parent45cd4aadbecce5840ab5dd56c0aad3c9807269fb (diff)
fix display of page when PageLayout::disableHeader() is active, fixes #2394
Closes #2394 Merge request studip/studip!1584
Diffstat (limited to 'lib/include')
-rw-r--r--lib/include/header.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/include/header.php b/lib/include/header.php
index c0046fb..e7a4ea8 100644
--- a/lib/include/header.php
+++ b/lib/include/header.php
@@ -51,8 +51,5 @@ if (PageLayout::isHeaderEnabled()) //Einige Seiten benötigen keinen Header, spr
$header_template->show_quicksearch = true;
}
}
-} else {
- $header_template = $GLOBALS['template_factory']->open('noheader');
+ echo $header_template->render();
}
-
-echo $header_template->render();