diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 3e31ca4..f116a26 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -116,10 +116,12 @@ final class BackendController extends Controller $question = QAQuestionMapper::get() ->with('answers') ->with('answers/createdBy') + ->with('answers/createdBy/image') ->with('answers/createdBy/account') ->with('answers/votes') ->with('createdBy') ->with('createdBy/account') + ->with('createdBy/image') ->with('votes') ->with('tags') ->with('tags/title') diff --git a/Models/NullQAAnswerVote.php b/Models/NullQAAnswerVote.php index 5e81bed..7356abe 100755 --- a/Models/NullQAAnswerVote.php +++ b/Models/NullQAAnswerVote.php @@ -34,6 +34,7 @@ final class NullQAAnswerVote extends QAAnswerVote public function __construct(int $id = 0) { $this->id = $id; + parent::__construct(); } /** diff --git a/Models/NullQAQuestionVote.php b/Models/NullQAQuestionVote.php index 0814dea..24f236d 100755 --- a/Models/NullQAQuestionVote.php +++ b/Models/NullQAQuestionVote.php @@ -34,6 +34,7 @@ final class NullQAQuestionVote extends QAQuestionVote public function __construct(int $id = 0) { $this->id = $id; + parent::__construct(); } /** diff --git a/Theme/Backend/qa-dashboard.tpl.php b/Theme/Backend/qa-dashboard.tpl.php index 8dd41c1..545109e 100755 --- a/Theme/Backend/qa-dashboard.tpl.php +++ b/Theme/Backend/qa-dashboard.tpl.php @@ -56,7 +56,9 @@ echo $this->data['nav']->render(); ?>
- getTags(); foreach ($tags as $tag) : ?> + getTags(); foreach ($tags as $tag) : + if ($tag->id === 0) { continue; } + ?> icon) ? '' : ''; ?>printHtml($tag->getL11n()); ?>
diff --git a/Theme/Backend/qa-question.tpl.php b/Theme/Backend/qa-question.tpl.php index 2dd43d4..79de3ef 100755 --- a/Theme/Backend/qa-question.tpl.php +++ b/Theme/Backend/qa-question.tpl.php @@ -68,7 +68,11 @@ echo $this->data['nav']->render();
- getTags(); foreach ($tags as $tag) : ?> + getTags(); + foreach ($tags as $tag) : + if ($tag->id === 0) { continue; } + ?> icon) ? '' : ''; ?>printHtml($tag->getL11n()); ?>
@@ -84,7 +88,7 @@ echo $this->data['nav']->render(); createdBy->image->id > 0) : ?> - <?= $this->getHtml('AccountImage', '0', '0'); ?> + <?= $this->getHtml('AccountImage', '0', '0'); ?>
@@ -155,7 +159,7 @@ echo $this->data['nav']->render();
Score: createdBy->account->id] ?? 0; ?>
createdBy->image->id > 0) : ?> - <?= $this->getHtml('AccountImage', '0', '0'); ?> + <?= $this->getHtml('AccountImage', '0', '0'); ?>