1
0
mirror of synced 2024-11-22 05:16:09 +03:00

added timezone check before install

This commit is contained in:
Grisha Pomadchin 2013-09-02 16:24:30 +04:00
parent bb22ddb413
commit 6c340f17b2
2 changed files with 7 additions and 1 deletions

View File

@ -65,6 +65,11 @@ class intaro_intarocrm extends CModule
return false;
}
if (!ini_get('date.timezone')) {
$APPLICATION->ThrowException( GetMessage("DATE_TIMEZONE_ERR") );
return false;
}
include($this->INSTALL_PATH . '/../classes/general/RestApi.php');
include($this->INSTALL_PATH . '/../classes/general/ICrmOrderActions.php');
include($this->INSTALL_PATH . '/../classes/general/ICMLLoader.php');

View File

@ -12,3 +12,4 @@ $MESS ['ERR_CATALOG'] = 'Отсутствует модуль catalog! Дальн
$MESS ['ERR_CATALOG'] = 'Отсутствует модуль catalog! Дальнейшая установка невозможна.';
$MESS ['INTAROCRM_CURL_ERR'] = 'Для работы модуля интеграции с IntaroCRM требуется PHP-расширение CURL.';
$MESS ['ERR_ARTICLE_IBLOCK'] = 'Не установлены артикулы';
$MESS ['DATE_TIMEZONE_ERR'] = 'Не указана временная зона в настройках php.';