Hide quote button if topic locked (#1416)

* Hide quote button if topic locked

* Updated

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-02-29 22:07:04 +07:00 committed by GitHub
commit 971b8da843
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13 additions and 10 deletions

View file

@ -603,7 +603,7 @@ for ($i = 0; $i < $total_posts; $i++) {
}
if (!$poster_bot) {
$quote_btn = true;
$quote_btn = ($is_auth['auth_reply'] && !($t_data['forum_status'] == FORUM_LOCKED || $t_data['topic_status'] == TOPIC_LOCKED));
$edit_btn = (($userdata['user_id'] == $poster_id && $is_auth['auth_edit']) || $is_auth['auth_mod']);
$ip_btn = ($is_auth['auth_mod'] || IS_MOD);
}