php4 temporary workaround for notifications for 1.4 release

This commit is contained in:
Cornelius Weiß 2006-09-27 10:03:34 +00:00
parent d6b7fc3c35
commit 5f0a31826d
2 changed files with 13 additions and 9 deletions

View File

@ -599,15 +599,8 @@ class bocalupdate extends bocal
// 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());
}
require_once(EGW_INCLUDE_ROOT. '/notifications/inc/class.notification.inc.php');
include(EGW_INCLUDE_ROOT. '/calendar/inc/class.php5_notification.inc.php');
}
}

View 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());
}
?>