Vote button code improvements (#1146)

* Vote button code improvements

* Updated

* Update viewtopic_attach.tpl
This commit is contained in:
Roman Kelesidis 2023-11-21 09:14:11 +07:00 committed by GitHub
commit 2c46a01fdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 21 deletions

View file

@ -33,8 +33,6 @@ switch ($mode) {
$columns = 'topic_id, user_id, time';
$values = "$topic_id, {$userdata['user_id']}, " . TIMENOW;
DB()->query('INSERT IGNORE INTO ' . BB_THX . " ($columns) VALUES ($values)");
$this->response['html'] = '<b>' . profile_url($userdata) . ' <i>(' . bb_date(TIMENOW) . ')</i></b>';
break;
case 'get':