summaryrefslogtreecommitdiff
path: root/app/Template/task/description.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-04-29 17:32:43 -0400
committerFrederic Guillot <fred@kanboard.net>2016-04-29 17:32:43 -0400
commitfc8f8748b9f89167ca9e6f4670bbc5e032e068b7 (patch)
treea7a5065e9a31dbd585439fdc2d8414abbfe074a6 /app/Template/task/description.php
parent81a25cbe6328eab7c4de0befc64186610ecc7f49 (diff)
Fixed wrong task link generation within Markdown text
Diffstat (limited to 'app/Template/task/description.php')
-rw-r--r--app/Template/task/description.php26
1 files changed, 2 insertions, 24 deletions
diff --git a/app/Template/task/description.php b/app/Template/task/description.php
index 9ffe8589..f8e313dd 100644
--- a/app/Template/task/description.php
+++ b/app/Template/task/description.php
@@ -4,29 +4,7 @@
</div>
<div class="accordion-content">
<article class="markdown">
- <?php if (! isset($is_public)): ?>
- <?= $this->text->markdown(
- $task['description'],
- array(
- 'controller' => 'task',
- 'action' => 'show',
- 'params' => array(
- 'project_id' => $task['project_id']
- )
- )
- ) ?>
- <?php else: ?>
- <?= $this->text->markdown(
- $task['description'],
- array(
- 'controller' => 'task',
- 'action' => 'readonly',
- 'params' => array(
- 'token' => $project['token']
- )
- )
- ) ?>
- <?php endif ?>
+ <?= $this->text->markdown($task['description'], isset($is_public) && $is_public) ?>
</article>
</div>
-</section> \ No newline at end of file
+</section>