bug fixes + file links in various modules

This commit is contained in:
Dennis Eichhorn 2021-07-19 21:34:06 +02:00
parent 5751295eb8
commit f7f3591c69
3 changed files with 4 additions and 2 deletions

View File

@ -16,6 +16,7 @@ namespace Modules\QA\Models;
use Modules\Profile\Models\NullProfile;
use Modules\Profile\Models\Profile;
use Modules\Media\Models\Media;
/**
* Answer class.

View File

@ -17,6 +17,7 @@ namespace Modules\QA\Models;
use Modules\Profile\Models\NullProfile;
use Modules\Profile\Models\Profile;
use Modules\Tag\Models\Tag;
use Modules\Media\Models\Media;
/**
* QA question class.

View File

@ -57,7 +57,7 @@ echo $this->getData('nav')->render();
</div>
<?php $files = $question->getMedia(); foreach ($files as $file) : ?>
<span class="file"><?= $this->printHtml($file->name); ?></span>
<span><a class="content" href="<?= UriFactory::build('{/prefix}media/single?id=' . $file->getId());?>"><?= $file->name; ?></a></span>
<?php endforeach; ?>
<a class="account-info" href="<?= UriFactory::build('{/prefix}profile/single?{?}&id=' . $question->createdBy->getId()); ?>">
@ -102,7 +102,7 @@ echo $this->getData('nav')->render();
</div>
<div class="portlet-foot qa-portlet-foot">
<?php $files = $answer->getMedia(); foreach ($files as $file) : ?>
<span class="file"><?= $this->printHtml($file->name); ?></span>
<span><a class="content" href="<?= UriFactory::build('{/prefix}media/single?id=' . $file->getId());?>"><?= $file->name; ?></a></span>
<?php endforeach; ?>
<a class="account-info" href="<?= UriFactory::build('{/prefix}profile/single?{?}&id=' . $answer->createdBy->getId()); ?>">