mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-14 04:34:07 +02:00
[ticket/8616] Direct links in pm notification emails
Import the "Direct links in pm notification emails" modification, version 1.0.1. PHPBB3-8616
This commit is contained in:
@@ -254,6 +254,12 @@ if (!$user->data['is_registered'])
|
||||
redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
|
||||
}
|
||||
|
||||
if ($id == 'pm' && $mode == 'view' && isset($_GET['p']))
|
||||
{
|
||||
$redirect_url = append_sid("{$phpbb_root_path}ucp.$phpEx?i=pm&p=" . request_var('p', 0));
|
||||
login_box($redirect_url, $user->lang['LOGIN_EXPLAIN_UCP']);
|
||||
}
|
||||
|
||||
login_box('', $user->lang['LOGIN_EXPLAIN_UCP']);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user