diff options
author | Klap-in <klapinklapin@gmail.com> | 2013-01-26 21:03:14 +0100 |
---|---|---|
committer | Klap-in <klapinklapin@gmail.com> | 2013-01-26 21:03:14 +0100 |
commit | 3a2c510523e4ea91ab270c3075349f319e4bc95e (patch) | |
tree | 7fe2d24e5f4450cf78e9291e8a2899665274c636 /inc/media.php | |
parent | 5fd9b829e7d9947de0eeead685e0a0cf707eff88 (diff) | |
parent | 1a40fc9935bd06a440a844e081e4bfce5fce2932 (diff) | |
download | rpg-3a2c510523e4ea91ab270c3075349f319e4bc95e.tar.gz rpg-3a2c510523e4ea91ab270c3075349f319e4bc95e.tar.bz2 |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'inc/media.php')
-rw-r--r-- | inc/media.php | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/inc/media.php b/inc/media.php index 6335bf210..572b1177c 100644 --- a/inc/media.php +++ b/inc/media.php @@ -535,32 +535,13 @@ function media_contentcheck($file,$mime){ * Send a notify mail on uploads * * @author Andreas Gohr <andi@splitbrain.org> - * @fixme this should embed thumbnails of images in HTML version */ function media_notify($id,$file,$mime,$old_rev=false){ - global $lang; global $conf; - global $INFO; if(empty($conf['notify'])) return; //notify enabled? - $text = rawLocale('uploadmail'); - $trep = array( - 'MIME' => $mime, - 'MEDIA' => ml($id,'',true,'&',true), - 'SIZE' => filesize_h(filesize($file)), - ); - - if ($old_rev && $conf['mediarevisions']) { - $trep['OLD'] = ml($id, "rev=$old_rev", true, '&', true); - } else { - $trep['OLD'] = '---'; - } - - $mail = new Mailer(); - $mail->to($conf['notify']); - $mail->subject($lang['mail_upload'].' '.$id); - $mail->setBody($text,$trep); - return $mail->send(); + $subscription = new Subscription(); + return $subscription->send_media_diff($conf['notify'], 'uploadmail', $id, $old_rev, ''); } /** |