Commit 1e0f5a20 authored by Kevin Ditscheid's avatar Kevin Ditscheid

[BUGFIX] Use $this->sys_language_uid instead of context

parent 142e30b1
......@@ -60,7 +60,7 @@ class PageRepository extends \TYPO3\CMS\Core\Domain\Repository\PageRepository {
FrontendServices::checkVisiblityForElement(
$page,
'pages',
GeneralUtility::makeInstance(Context::class)->getPropertyFromAspect('language', 'id', 0)
$this->sys_language_uid
)
) {
return $page;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment