mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-22 02:55:41 +02:00
[ticket/15622] Fix message link generation
Now the message link is generated in different formats depending on whether BBCodes are allowed or not in the site. PHPBB3-15622
This commit is contained in:
@ -954,7 +954,16 @@ function compose_pm($id, $mode, $action, $user_folders = array())
|
|||||||
$post_id = $request->variable('p', 0);
|
$post_id = $request->variable('p', 0);
|
||||||
if ($config['allow_post_links'])
|
if ($config['allow_post_links'])
|
||||||
{
|
{
|
||||||
$message_link = "[url=" . generate_board_url() . "/viewtopic.$phpEx?p={$post_id}#p{$post_id}]{$user->lang['SUBJECT']}{$user->lang['COLON']} {$message_subject}[/url]\n\n";
|
$message_link = generate_board_url() . "/viewtopic.$phpEx?p={$post_id}#p{$post_id}";
|
||||||
|
$message_link_subject = "{$user->lang['SUBJECT']}{$user->lang['COLON']} {$message_subject}";
|
||||||
|
if ($bbcode_status)
|
||||||
|
{
|
||||||
|
$message_link = "[url=" . $message_link . "]" . $message_link_subject . "[/url]\n\n";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$message_link = $message_link . " - " . $message_link_subject . "\n\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user