also fix calls to deprecated ajaxResponse class to use egw_json_response singleton, should be fixed in code for current apps

This commit is contained in:
Ralf Becker
2013-08-25 15:14:19 +00:00
parent 38798b872d
commit 46f81649eb
2 changed files with 11 additions and 34 deletions

View File

@@ -81,7 +81,7 @@ class notifications_ajax {
/**
* the xml response object
*
* @var xajaxResponse
* @var egw_json_response
*/
private $response;
@@ -90,10 +90,7 @@ class notifications_ajax {
*
*/
public function __construct() {
if(class_exists('xajaxResponse'))
{
$this->response = new xajaxResponse();
}
$this->response = egw_json_response::get();
$this->recipient = (object)$GLOBALS['egw']->accounts->read($GLOBALS['egw_info']['user']['account_id']);
$this->config = (object)config::read(self::_appname);