diff --git a/CHANGELOG.md b/CHANGELOG.md index a5cfe112..40cdfa9e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2023-06-01 v.6.3.7 +- Исправлено получение основного сайта для записи логов модуля + ## 2023-05-19 v.6.3.6 - В настройки добавлена опция деактивации модуля diff --git a/intaro.retailcrm/classes/general/Logger.php b/intaro.retailcrm/classes/general/Logger.php index f8febc7b..ed85a065 100644 --- a/intaro.retailcrm/classes/general/Logger.php +++ b/intaro.retailcrm/classes/general/Logger.php @@ -48,11 +48,13 @@ class Logger public function write($dump, $file = 'info') { - $rsSites = CSite::GetList($by, $sort, array('DEF' => 'Y')); + $rsSites = CSite::GetList($by, $sort, array('DEFAULT' => 'Y')); $ar = $rsSites->Fetch(); + if (!is_dir($ar['ABS_DOC_ROOT'] . $this->logPath . '/')) { mkdir($ar['ABS_DOC_ROOT'] . $this->logPath . '/'); } + $file = $ar['ABS_DOC_ROOT'] . $this->logPath . '/' . $file . '.log'; $data['TIME'] = date('Y-m-d H:i:s'); diff --git a/intaro.retailcrm/description.ru b/intaro.retailcrm/description.ru index 5d3ee001..49d046c7 100644 --- a/intaro.retailcrm/description.ru +++ b/intaro.retailcrm/description.ru @@ -1 +1 @@ -- В настройки добавлена опция деактивации модуля \ No newline at end of file +- Исправлено получение основного сайта для записи логов модуля \ No newline at end of file diff --git a/intaro.retailcrm/install/version.php b/intaro.retailcrm/install/version.php index c6253225..a94ef1fb 100644 --- a/intaro.retailcrm/install/version.php +++ b/intaro.retailcrm/install/version.php @@ -1,6 +1,6 @@ '6.3.6', - 'VERSION_DATE' => '2023-05-19 12:00:00' + 'VERSION' => '6.3.7', + 'VERSION_DATE' => '2023-06-01 12:00:00' ];