Minor improvements (#1458)

* Minor improvements

* Updated

* Update modcp.php

* Update modcp.tpl

* Update modcp.php

* Update modcp.tpl

* Update viewtopic.php

* Update posting.php

* Updated

* Update viewtopic.tpl

* Update admin_log.tpl

* Updated

* Update modcp.php

* Update modcp.php

* Update CHANGELOG.md

* Revert "Update CHANGELOG.md"

This reverts commit 7933176d33.

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-05-01 12:36:06 +07:00 committed by GitHub
commit 9d3bc2c178
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 36 additions and 30 deletions

View file

@ -358,8 +358,8 @@ if (!$ranks = $datastore->get('ranks')) {
$topic_title = $wordCensor->censorString($topic_title);
// Post, reply and other URL generation for templating vars
$new_topic_url = POSTING_URL . "?mode=newtopic&f=" . $forum_id;
$reply_topic_url = POSTING_URL . "?mode=reply&t=" . $topic_id;
$new_topic_url = POSTING_URL . "?mode=newtopic&" . POST_FORUM_URL . "=$forum_id";
$reply_topic_url = POSTING_URL . "?mode=reply&" . POST_TOPIC_URL . "=$topic_id";
$view_forum_url = FORUM_URL . $forum_id;
$view_prev_topic_url = TOPIC_URL . $topic_id . "&view=previous#newest";
$view_next_topic_url = TOPIC_URL . $topic_id . "&view=next#newest";
@ -494,7 +494,7 @@ $template->assign_vars([
'U_VIEW_NEWER_TOPIC' => $view_next_topic_url,
'U_POST_NEW_TOPIC' => $new_topic_url,
'U_POST_REPLY_TOPIC' => $reply_topic_url,
'U_SEARCH_SELF' => "search.php?uid={$userdata['user_id']}&t=$topic_id&dm=1",
'U_SEARCH_SELF' => "search.php?uid={$userdata['user_id']}&" . POST_TOPIC_URL . "=$topic_id&dm=1",
'TOPIC_HAS_POLL' => $topic_has_poll,
'POLL_IS_EDITABLE' => !$poll_time_expired,