Add changeo
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace ProcessMaker\BusinessModel\Light;
|
||||
|
||||
use Processmaker\Core\System;
|
||||
use \ProcessMaker\Services\Api;
|
||||
use G;
|
||||
|
||||
@@ -11,7 +12,7 @@ class NotificationDevice
|
||||
|
||||
public function checkMobileNotifications()
|
||||
{
|
||||
$conf = \ProcessMaker\Core\System::getSystemConfiguration('', '', SYS_SYS);
|
||||
$conf = System::getSystemConfiguration('', '', SYS_SYS);
|
||||
$activeNotifications = true;
|
||||
if (isset($conf['mobileNotifications'])) {
|
||||
$activeNotifications = $conf['mobileNotifications'] == 1 ? true : false;
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
|
||||
namespace ProcessMaker\BusinessModel\Light;
|
||||
|
||||
use Processmaker\Core\System;
|
||||
|
||||
class PushMessageAndroid
|
||||
{
|
||||
private $url = 'https://android.googleapis.com/gcm/send';
|
||||
@@ -54,7 +56,7 @@ class PushMessageAndroid
|
||||
*/
|
||||
public function setSettingNotification()
|
||||
{
|
||||
$conf = \ProcessMaker\Core\System::getSystemConfiguration(PATH_CONFIG . 'mobile.ini');
|
||||
$conf = System::getSystemConfiguration(PATH_CONFIG . 'mobile.ini');
|
||||
$this->setUrl($conf['android']['url']);
|
||||
$this->setKey($conf['android']['serverApiKey']);
|
||||
}
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
|
||||
namespace ProcessMaker\BusinessModel\Light;
|
||||
|
||||
use Processmaker\Core\System;
|
||||
|
||||
class PushMessageIOS
|
||||
{
|
||||
private $url = 'ssl://gateway.sandbox.push.apple.com:2195';
|
||||
@@ -67,7 +69,7 @@ class PushMessageIOS
|
||||
*/
|
||||
public function setSettingNotification()
|
||||
{
|
||||
$conf = \ProcessMaker\Core\System::getSystemConfiguration(PATH_CONFIG . 'mobile.ini');
|
||||
$conf = System::getSystemConfiguration(PATH_CONFIG . 'mobile.ini');
|
||||
$this->setUrl($conf['apple']['url']);
|
||||
$this->setKey($conf['apple']['passphrase']);
|
||||
$this->setPemFile($conf['apple']['pemFile']);
|
||||
|
||||
Reference in New Issue
Block a user