Migrate to stable saschaegerer/phpstan-typo3 package
This commit is contained in:
parent
24e36f0882
commit
6f7f85b92c
1 changed files with 1 additions and 4 deletions
|
@ -47,10 +47,7 @@ class PageLayoutHeader
|
||||||
public function __invoke(ModifyPageLayoutContentEvent $event): void
|
public function __invoke(ModifyPageLayoutContentEvent $event): void
|
||||||
{
|
{
|
||||||
$request = $event->getRequest();
|
$request = $event->getRequest();
|
||||||
$pageinfo = BackendUtility::readPageAccess(
|
$pageinfo = BackendUtility::readPageAccess((int) ($request->getQueryParams()['id'] ?? 0), '');
|
||||||
(int) ($request->getParsedBody()['id'] ?? $request->getQueryParams()['id'] ?? 0),
|
|
||||||
''
|
|
||||||
);
|
|
||||||
|
|
||||||
// TODO: Check whether two levels up is uid 2, which holds all blog posts
|
// TODO: Check whether two levels up is uid 2, which holds all blog posts
|
||||||
// To prevent rendering on non blog posts
|
// To prevent rendering on non blog posts
|
||||||
|
|
Loading…
Reference in a new issue