Skip to content
Snippets Groups Projects
Commit 204d9c53 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

surpress warning in mail setup when hostname can't be determined

parent d6dc956f
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,9 @@ function mail_setup(){
if(!empty($USERINFO['mail'])){
$replace['@MAIL@'] = $USERINFO['mail'];
}else{
$replace['@MAIL@'] = 'noreply@'.parse_url(DOKU_URL,PHP_URL_HOST);
$host = @parse_url(DOKU_URL,PHP_URL_HOST);
if(!$host) $host = 'example.com';
$replace['@MAIL@'] = 'noreply@'.$host;
}
if(!empty($_SERVER['REMOTE_USER'])){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment