diff options
Diffstat (limited to 'app/Template/comment/show.php')
-rw-r--r-- | app/Template/comment/show.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/Template/comment/show.php b/app/Template/comment/show.php index 5e1e9337..2631975a 100644 --- a/app/Template/comment/show.php +++ b/app/Template/comment/show.php @@ -1,7 +1,7 @@ <div class="comment <?= isset($preview) ? 'comment-preview' : '' ?>" id="comment-<?= $comment['id'] ?>"> <p class="comment-title"> - <span class="comment-username"><?= Helper\escape($comment['name'] ?: $comment['username']) ?></span> @ <span class="comment-date"><?= dt('%B %e, %Y at %k:%M %p', $comment['date']) ?></span> + <span class="comment-username"><?= $this->e($comment['name'] ?: $comment['username']) ?></span> @ <span class="comment-date"><?= dt('%B %e, %Y at %k:%M %p', $comment['date']) ?></span> </p> <div class="comment-inner"> @@ -9,12 +9,12 @@ <?php if (! isset($preview)): ?> <ul class="comment-actions"> <li><a href="#comment-<?= $comment['id'] ?>"><?= t('link') ?></a></li> - <?php if ((! isset($not_editable) || ! $not_editable) && (Helper\is_admin() || Helper\is_current_user($comment['user_id']))): ?> + <?php if ((! isset($not_editable) || ! $not_editable) && ($this->acl->isAdminUser() || $this->acl->isCurrentUser($comment['user_id']))): ?> <li> - <?= Helper\a(t('remove'), 'comment', 'confirm', array('task_id' => $task['id'], 'comment_id' => $comment['id'])) ?> + <?= $this->a(t('remove'), 'comment', 'confirm', array('task_id' => $task['id'], 'comment_id' => $comment['id'])) ?> </li> <li> - <?= Helper\a(t('edit'), 'comment', 'edit', array('task_id' => $task['id'], 'comment_id' => $comment['id'])) ?> + <?= $this->a(t('edit'), 'comment', 'edit', array('task_id' => $task['id'], 'comment_id' => $comment['id'])) ?> </li> <?php endif ?> </ul> @@ -22,7 +22,7 @@ <div class="markdown"> <?php if (isset($is_public) && $is_public): ?> - <?= Helper\markdown( + <?= $this->markdown( $comment['comment'], array( 'controller' => 'task', @@ -33,7 +33,7 @@ ) ) ?> <?php else: ?> - <?= Helper\markdown($comment['comment']) ?> + <?= $this->markdown($comment['comment']) ?> <?php endif ?> </div> |