mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-24 06:46:01 +02:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user