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

feat: Accordion control accept both QUI\Projects\Site and index.php string as parent site.

Übergeordneter f3e66a80
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -59,7 +59,11 @@ class Accordion extends QUI\Control
if ($this->getAttribute('parentSite')) {
try {
$FAQParentSite = \QUI\Projects\Site\Utils::getSiteByLink($this->getAttribute('parentSite'));
if ($this->getAttribute('parentSite') instanceof \QUI\Projects\Site) {
$FAQParentSite = $this->getAttribute('parentSite');
} else {
$FAQParentSite = \QUI\Projects\Site\Utils::getSiteByLink($this->getAttribute('parentSite'));
}
} catch (QUI\Exception $Exception) {
QUI\System\Log::addDebug($Exception->getMessage());
......
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