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

Merge branch 'dev'

Übergeordnete d95f7187 58534af7
No related branches found
No related tags found
2 Merge Requests!19Dev,!18Feat menu manager improvement
......@@ -60,6 +60,7 @@ public function getSite(): ?QUI\Projects\Site
$Project = $Site->getProject();
$langId = $Site->getId($current);
$LangProject = QUI::getProject($Project->getName(), $current);
return $LangProject->get($langId);
} catch (QUI\Exception $exception) {
return null;
......@@ -115,9 +116,15 @@ public function getTitle(QUI\Locale $Locale = null): string
}
try {
$data = $this->getCustomData();
$data = $this->getCustomData();
if (!$data || !isset($data['site'])) {
return '';
}
$siteUrl = $data['site'];
$Site = QUI\Projects\Site\Utils::getSiteByLink($siteUrl);
return $Site->getAttribute('title');
} catch (QUI\Exception $Exception) {
}
......
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