Fix broken links (Markdown content) for public boards (#319)

This commit is contained in:
Frédéric Guillot
2014-10-20 20:40:50 -04:00
parent 6f527f2055
commit 88a1120d9b
6 changed files with 59 additions and 9 deletions

View File

@@ -21,7 +21,20 @@
<?php endif ?>
<div class="markdown">
<?= Helper\markdown($comment['comment']) ?>
<?php if (isset($is_public) && $is_public): ?>
<?= Helper\markdown(
$comment['comment'],
array(
'controller' => 'task',
'action' => 'readonly',
'params' => array(
'token' => $project['token']
)
)
) ?>
<?php else: ?>
<?= Helper\markdown($comment['comment']) ?>
<?php endif ?>
</div>
</div>