Skip to content

Commit

Permalink
fix Contao 4.8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg authored Oct 18, 2019
1 parent 2e1d42a commit a55894d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/EventListener/InheritArticleListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,12 @@ protected function applyThemeAndLayout(PageModel $page, LayoutModel $layout): vo
$page->layoutId = $layout->id;
$page->template = $layout->template ?: 'fe_page';
$page->templateGroup = $theme->templates;
[$strFormat, $strVariant] = explode('_', $layout->doctype);
$page->outputFormat = $strFormat;
$page->outputVariant = $strVariant;
$page->minifyMarkup = $theme->minifyMarkup;

if (null !== $layout->doctype) {
[$format, $variant] = explode('_', $layout->doctype);
$page->outputFormat = $format;
$page->outputVariant = $variant;
}
}
}

0 comments on commit a55894d

Please sign in to comment.