Skip to content
Snippets Groups Projects
Commit 427fd3cc authored by Guy Brand's avatar Guy Brand
Browse files

Use mailprefix for media upload emails too (see also FS#2021)

parent ed5218f1
No related branches found
No related tags found
No related merge requests found
......@@ -435,7 +435,11 @@ function media_notify($id,$file,$mime){
$text = str_replace('@MEDIA@',ml($id,'',true,'&',true),$text);
$text = str_replace('@SIZE@',filesize_h(filesize($file)),$text);
$subject = '['.$conf['title'].'] '.$lang['mail_upload'].' '.$id;
if(empty($conf['mailprefix'])) {
$subject = '['.$conf['title'].'] '.$lang['mail_upload'].' '.$id;
} else {
$subject = '['.$conf['mailprefix'].'] '.$lang['mail_upload'].' '.$id;
}
mail_send($conf['notify'],$subject,$text,$conf['mailfrom']);
}
......
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