mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00: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:
parent
184d24bb16
commit
ce2196517b
1 changed files with 10 additions and 1 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue