mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 00:53:04 +02:00
- bug fixed : errors in notification mails... $conf['webmaster'] as
disappeared and $conf['version'] was replaced by PHPWG_VERSION git-svn-id: http://piwigo.org/svn/trunk@747 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -408,7 +408,7 @@ function notify( $type, $infos = '' )
|
||||
{
|
||||
global $conf;
|
||||
|
||||
$headers = 'From: '.$conf['webmaster'].' <'.$conf['mail_webmaster'].'>'."\n";
|
||||
$headers = 'From: <'.$conf['mail_webmaster'].'>'."\n";
|
||||
$headers.= 'Reply-To: '.$conf['mail_webmaster']."\n";
|
||||
$headers.= 'X-Mailer: PhpWebGallery, PHP '.phpversion();
|
||||
|
||||
@@ -439,7 +439,7 @@ function notify( $type, $infos = '' )
|
||||
$infos = str_replace( ' ', ' ', $infos );
|
||||
$infos = str_replace( '−', '-', $infos );
|
||||
$content.= "\n\n".$infos;
|
||||
$content.= "\n\n-- \nPhpWebGallery ".$conf['version'];
|
||||
$content.= "\n\n-- \nPhpWebGallery ".PHPWG_VERSION;
|
||||
$content = wordwrap( $content, 72 );
|
||||
@mail( $to, $subject, $content, $headers, $options );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user