diff --git a/controllers/QuestsController.inc b/controllers/QuestsController.inc index 51d42cc8..51e1664c 100644 --- a/controllers/QuestsController.inc +++ b/controllers/QuestsController.inc @@ -265,6 +265,10 @@ // Get Questgroup $questgroup = $this->Questgroups->getQuestgroupByUrl($seminary['id'], $questgroupUrl); + $questgroup['picture'] = null; + if(!is_null($questgroup['questgroupspicture_id'])) { + $questgroup['picture'] = $this->Media->getMediaById($questgroup['questgroupspicture_id']); + } // Get Quest $quest = $this->Quests->getQuestByUrl($seminary['id'], $questgroup['id'], $questUrl); @@ -314,6 +318,10 @@ // Get Questgroup $questgroup = $this->Questgroups->getQuestgroupByUrl($seminary['id'], $questgroupUrl); + $questgroup['picture'] = null; + if(!is_null($questgroup['questgroupspicture_id'])) { + $questgroup['picture'] = $this->Media->getMediaById($questgroup['questgroupspicture_id']); + } // Get Quest $quest = $this->Quests->getQuestByUrl($seminary['id'], $questgroup['id'], $questUrl); diff --git a/views/html/charactergroups/group.tpl b/views/html/charactergroups/group.tpl index 9f5bd147..ff53d1cf 100644 --- a/views/html/charactergroups/group.tpl +++ b/views/html/charactergroups/group.tpl @@ -1,17 +1,14 @@ -
+

+

-

+

Schweb wie ein Schmetterling! Stich wie eine Biene!
-

+

-

+