mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
use new notification app for calendar
This commit is contained in:
parent
8a04e759c4
commit
241c1d04cd
@ -596,6 +596,20 @@ class bocalupdate extends bocal
|
|||||||
$returncode = $send->Send();
|
$returncode = $send->Send();
|
||||||
|
|
||||||
// ToDo: give error-messages for all all failed sendings
|
// ToDo: give error-messages for all all failed sendings
|
||||||
|
|
||||||
|
// notification via notification app.
|
||||||
|
if (version_compare("5.1.0", phpversion()) && array_key_exists('notifications',$GLOBALS['egw_info']['apps'])) {
|
||||||
|
$notification = new notification();
|
||||||
|
$notification->set_message($body);
|
||||||
|
$notification->set_receivers(array($userid));
|
||||||
|
try {
|
||||||
|
$notification->send();
|
||||||
|
}
|
||||||
|
catch(Exception $exception) {
|
||||||
|
error_log($exception->getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// restore the enviroment
|
// restore the enviroment
|
||||||
|
Loading…
Reference in New Issue
Block a user