Skip to content
Snippets Groups Projects
Commit 4436b575 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Fix missing docheeader

parent 6b8cdb2f
No related branches found
No related tags found
No related merge requests found
......@@ -85,6 +85,7 @@ class BackendController extends ActionController {
$this->docHeaderComponent = GeneralUtility::makeInstance(DocHeaderComponent::class);
$this->docHeaderComponent->setMetaInformation($pageInfo);
BackendService::makeButtons($this->docHeaderComponent, $this->request);
$this->view->assign('docHeader', $this->docHeaderComponent->docHeaderContent());
// when we are on a siteroot page then display the normal view
if ($pageInfo && (int) $pageInfo['is_siteroot'] === 1) {
......@@ -108,15 +109,14 @@ class BackendController extends ActionController {
$this->view->assign('filters', $filters);
$this->view->assign('pageUid', $pageUid);
$this->view->assign('rootPageUid', $this->rootPageUid);
$this->view->assign('docHeader', $this->docHeaderComponent->docHeaderContent());
$this->view->assign('typo3Version', VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version));
$this->view->assign('docHeader', $this->docHeaderComponent->docHeaderContent());
} else {
$this->view->assign('pages', BackendService::getPages());
$this->view->assign('rootOptions', BackendService::getRootOptions());
}
} catch (\Exception $exception) {
debug($exception);
// check for NULL value in view and render an error message
$this->view->assign('docHeader', NULL);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment