Skip to content

Commit

Permalink
[TASK] Replace deprecated fillDefaultsByPackageName
Browse files Browse the repository at this point in the history
  • Loading branch information
bnf committed Oct 17, 2024
1 parent 4ca2c2e commit 3dfca4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/Backend/View/BlogPostHeaderContentRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ public function render(ServerRequestInterface $request): string
$post = $this->postRepository->findByUidRespectQuerySettings($pageUid);

$view = GeneralUtility::makeInstance(StandaloneView::class);
$view->getRenderingContext()->getTemplatePaths()->fillDefaultsByPackageName('blog');
//$view->getRenderingContext()->getTemplatePaths()->fillDefaultsByPackageName('blog');
$view->getRenderingContext()->getTemplatePaths()->setTemplateRootPaths(['EXT:blog/Resources/Private/Templates']);
$view->setTemplate('PageLayout/Header');
$view->assignMultiple([
'pageUid' => $pageUid,
Expand Down

0 comments on commit 3dfca4f

Please sign in to comment.