Skip to content
Snippets Groups Projects
Commit a52dea0c authored by Jared Hancock's avatar Jared Hancock
Browse files

client: Fix crash rendering a faq article with attachments

parent eb3ee4cd
No related branches found
No related tags found
No related merge requests found
......@@ -42,9 +42,9 @@ $category=$faq->getCategory();
<strong><?php echo __('Attachments');?>:</strong>
<?php foreach ($attachments as $att) { ?>
<div>
<a href="file.php?h=<?php echo $att['download']; ?>" class="no-pjax">
<a href="file.php?h=<?php echo $att->file->getDownloadUrl(); ?>" class="no-pjax">
<i class="icon-file"></i>
<?php echo Format::htmlchars($att['name']); ?>
<?php echo Format::htmlchars($att->getFilename()); ?>
</a>
</div>
<?php } ?>
......@@ -53,8 +53,8 @@ $category=$faq->getCategory();
if ($faq->getHelpTopics()->count()) { ?>
<section>
<strong><?php echo __('Help Topics'); ?></strong>
<?php foreach ($faq->getHelpTopics() as $topic) { ?>
<div><?php echo $topic->getFullName(); ?></div>
<?php foreach ($faq->getHelpTopics() as $T) { ?>
<div><?php echo $T->topic->getFullName(); ?></div>
<?php } ?>
</section>
<?php }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment