making more sense in mail_notify_fav

We should probably get rid of this function, at least storing everything in
lib/mail.php - but until then, at least let's make it more understandable.
This commit is contained in:
Mikael Nordfeldth
2014-07-13 12:56:43 +02:00
parent e328fd7901
commit 6f593a79d4
5 changed files with 23 additions and 16 deletions

View File

@@ -40,7 +40,9 @@ class FavCommand extends Command
if ($other && $other->id != $this->user->id) {
if ($other->email && $other->emailnotifyfav) {
mail_notify_fave($other, $this->user, $notice);
require_once INSTALLDIR.'/lib/mail.php';
mail_notify_fave($other, $this->user->getProfile(), $notice);
}
}