mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-23 18:38:53 +00:00
[feature/soft-delete] Display guest username in topic list instead of "Guest"
PHPBB3-9567
This commit is contained in:
parent
43d041bdec
commit
2adb37049e
1 changed files with 2 additions and 2 deletions
|
@ -417,7 +417,7 @@ class mcp_queue
|
||||||
{
|
{
|
||||||
if (empty($row['post_username']))
|
if (empty($row['post_username']))
|
||||||
{
|
{
|
||||||
$row['post_username'] = $user->lang['GUEST'];
|
$row['post_username'] = $row['username'] ?: $user->lang['GUEST'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$template->assign_block_vars('postrow', array(
|
$template->assign_block_vars('postrow', array(
|
||||||
|
@ -747,7 +747,7 @@ class mcp_queue
|
||||||
'USERNAME' => htmlspecialchars_decode($topic_data['username']),
|
'USERNAME' => htmlspecialchars_decode($topic_data['username']),
|
||||||
'TOPIC_TITLE' => htmlspecialchars_decode(censor_text($topic_data['topic_title'])),
|
'TOPIC_TITLE' => htmlspecialchars_decode(censor_text($topic_data['topic_title'])),
|
||||||
'U_VIEW_TOPIC' => generate_board_url() . "/viewtopic.$phpEx?f={$topic_data['forum_id']}&t={$topic_data['topic_id']}&e=0",
|
'U_VIEW_TOPIC' => generate_board_url() . "/viewtopic.$phpEx?f={$topic_data['forum_id']}&t={$topic_data['topic_id']}&e=0",
|
||||||
);
|
));
|
||||||
|
|
||||||
$messenger->send($topic_data['user_notify_type']);
|
$messenger->send($topic_data['user_notify_type']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue