Use target="_blank" in admin for profile_url() redirects (#1330)

* Use target="_blank" in admin for profile_url() redirects

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-01-21 14:13:32 +07:00 committed by GitHub
commit 1ba5576ad5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 9 additions and 7 deletions

View file

@ -262,7 +262,7 @@ if ($log_rowset) {
'ACTION_HREF_S' => url_arg($url, $type_key, $row['log_type_id']),
'USER_ID' => $row['log_user_id'],
'USERNAME' => profile_url($row),
'USERNAME' => profile_url($row, true),
'USER_HREF_S' => url_arg($url, $user_key, $row['log_user_id']),
'USER_IP' => \TorrentPier\Helpers\IPHelper::isValid($row['log_user_ip']) ? \TorrentPier\Helpers\IPHelper::long2ip_extended($row['log_user_ip']) : '127.0.0.1',
@ -310,7 +310,7 @@ if ($log_rowset) {
// Users
if ($user_csv && empty($filter['users'])) {
$template->assign_block_vars('users', array(
'USERNAME' => profile_url($row),
'USERNAME' => profile_url($row, true),
));
$filter['users'] = true;
}