Skip to content

Commit

Permalink
rewrite message links to use long form
Browse files Browse the repository at this point in the history
  • Loading branch information
live627 committed Dec 25, 2024
1 parent c978ec9 commit 6f12043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Msg.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ public function format(int $counter = 0, array $format_options = []): array
'id' => $this->id,
'topic' => $this->id_topic,
'board' => $format_options['load_board'] ? Board::init($this->id_board) : $this->id_board,
'href' => Config::$scripturl . '?msg=' . $this->id . (!empty($format_options['url_params']) ? ';' . implode(';', $format_options['url_params']) : ''),
'href' => Config::$scripturl . '?topic=' . $this->id_topic . '.msg' . $this->id . '#msg' . $this->id . (!empty($format_options['url_params']) ? ';' . implode(';', $format_options['url_params']) : ''),
'subject' => ($this->subject ?? '') != '' ? $this->subject : Lang::$txt['no_subject'],
'time' => Time::create('@' . $this->poster_time)->format(),
'timestamp' => $this->poster_time,
Expand Down

0 comments on commit 6f12043

Please sign in to comment.