aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hackl <hackl@data-quest.de>2022-04-07 16:38:13 +0200
committerThomas Hackl <hackl@data-quest.de>2022-04-07 16:38:27 +0200
commitaf36e38dc47cee32d56fc7bac1463b6b0244eb6c (patch)
tree657ec4fd23167fdea48952bbee71367b506b316d
parent181a2c33fc45d35a47422c93cfcd073c568026bf (diff)
use URLHelper again as $controller does not work in JSUpdater, fixes #891
-rw-r--r--app/views/messages/_message_row.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/messages/_message_row.php b/app/views/messages/_message_row.php
index 1cc8b86..3823e23 100644
--- a/app/views/messages/_message_row.php
+++ b/app/views/messages/_message_row.php
@@ -1,7 +1,7 @@
<tr id="message_<?= $message->getId() ?>" class="<?= $message->isRead() || $message['autor_id'] === $GLOBALS['user']->id ? "" : "unread" ?>">
<td class="hidden-small-down"><input type="checkbox" name="bulk[]" value="<?= htmlReady($message->getId()) ?>"></td>
<td class="title">
- <a href="<?= $controller->read($message, $received ? 'rec' : 'snd') ?>" data-dialog>
+ <a href="<?= URLHelper::getLink('dispatch.php/messages/read/' . $message->getId() .'/' . ($received ? 'rec' : 'snd') ) ?>" data-dialog>
<?= trim($message['subject']) ? htmlReady($message['subject']) : htmlReady(mila(kill_format($message['message']), 40)) ?>
<div class="message-indicators">
<span><?= $message->getNumAttachments() ? Icon::create('staple', 'info', ["title" => _("Mit Anhang")])->asImg(20) : "" ?></span>