1
0
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:
Alan
2011-10-13 19:17:56 +02:00
committed by Igor Wiedler
parent b957639abb
commit f7c1341402
3 changed files with 10 additions and 4 deletions

View File

@@ -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']);
}