mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-15 03:55:23 +02:00
Merge branch 'develop-ascraeus' into develop
This commit is contained in:
commit
06be2ff67d
@ -402,17 +402,9 @@ class messenger
|
||||
*/
|
||||
function generate_message_id()
|
||||
{
|
||||
global $config;
|
||||
global $config, $request;
|
||||
|
||||
$domain = 'phpbb.generated';
|
||||
if ($config['server_name'])
|
||||
{
|
||||
$domain = $config['server_name'];
|
||||
}
|
||||
else if (!empty($_SERVER['SERVER_NAME']))
|
||||
{
|
||||
$domain = $_SERVER['SERVER_NAME'];
|
||||
}
|
||||
$domain = ($config['server_name']) ?: $request->server('SERVER_NAME', 'phpbb.generated');
|
||||
|
||||
return md5(unique_id(time())) . '@' . $domain;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user