Commit 835931b4 authored by Shakarim Sapa's avatar Shakarim Sapa

- Добавлен поиск и вставка unisender_api_key при отправке сообщения

parent e7a06690
<?php
namespace common\components;
use common\models\Settings;
use common\modules\triggers\components\conditions\vendor\ConditionBase;
use yii\helpers\Json;
......@@ -53,7 +54,8 @@ class UnisenderAPI {
* @param bool $Compression
*/
function __construct($ApiKey = '5p7mt1be5x6axqniwu937gqohj9k9hn7gbex1efo', $Encoding = 'UTF8', $RetryCount = 4, $Timeout = null, $Compression = false) {
$this->ApiKey = $ApiKey;
$key = Settings::getValue('unisender_api_key');
$this->ApiKey = (!is_null($key)) ? $key : $ApiKey;
if (!empty($Encoding)) {
$this->Encoding = $Encoding;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment