forked from extern/egroupware
php4 temporary workaround for notifications for 1.4 release
This commit is contained in:
parent
d6b7fc3c35
commit
5f0a31826d
@ -599,15 +599,8 @@ class bocalupdate extends bocal
|
|||||||
|
|
||||||
// notification via notification app.
|
// notification via notification app.
|
||||||
if (version_compare("5.1.0", phpversion()) && array_key_exists('notifications',$GLOBALS['egw_info']['apps'])) {
|
if (version_compare("5.1.0", phpversion()) && array_key_exists('notifications',$GLOBALS['egw_info']['apps'])) {
|
||||||
$notification = new notification();
|
require_once(EGW_INCLUDE_ROOT. '/notifications/inc/class.notification.inc.php');
|
||||||
$notification->set_message($body);
|
include(EGW_INCLUDE_ROOT. '/calendar/inc/class.php5_notification.inc.php');
|
||||||
$notification->set_receivers(array($userid));
|
|
||||||
try {
|
|
||||||
$notification->send();
|
|
||||||
}
|
|
||||||
catch(Exception $exception) {
|
|
||||||
error_log($exception->getMessage());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
11
calendar/inc/class.php5_notification.inc.php
Normal file
11
calendar/inc/class.php5_notification.inc.php
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
$notification = new notification();
|
||||||
|
$notification->set_message($body);
|
||||||
|
$notification->set_receivers(array($userid));
|
||||||
|
try {
|
||||||
|
$notification->send();
|
||||||
|
}
|
||||||
|
catch(Exception $exception) {
|
||||||
|
error_log($exception->getMessage());
|
||||||
|
}
|
||||||
|
?>
|
Loading…
Reference in New Issue
Block a user