Commit 5844da0f authored by Fabio Stegmeyer's avatar Fabio Stegmeyer

[BUGFIX] Fix page id determination

parent 9d956fd4
......@@ -92,8 +92,14 @@ class Language {
$siteFinder = GeneralUtility::makeInstance(SiteFinder::class);
if ($contextElement->getTable() === 'pages') {
$pid = $contextElement->getUid();
}else{
$pid = $contextElement->getPid();
}
try {
$site = $siteFinder->getSiteByPageId($contextElement->getPid());
$site = $siteFinder->getSiteByPageId($pid);
} catch (\Exception $e) {
return [];
}
......
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