Skip to content
Code-Schnipsel Gruppen Projekte
Commit 63016fdc erstellt von Michael Danielczok's avatar Michael Danielczok
Dateien durchsuchen

Merge branch 'dev'

Übergeordnete e87a06db b5b0077b
No related branches found
No related tags found
2 Merge Requests!19Dev,!18Feat menu manager improvement
......@@ -70,6 +70,20 @@ public function getSite(): ?QUI\Projects\Site
return null;
}
$current = QUI::getLocale()->getCurrent();
// if current language is another language as the site
if ($current !== $Site->getAttribute('lang')) {
try {
$Project = $Site->getProject();
$langId = $Site->getId($current);
$LangProject = QUI::getProject($Project->getName(), $current);
return $LangProject->get($langId);
} catch (QUI\Exception $exception) {
return null;
}
}
if ($Site->getAttribute('active')) {
return $Site;
}
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren