1
0
mirror of synced 2024-11-25 23:06:08 +03:00

added timezone check before install

This commit is contained in:
Grisha Pomadchin 2013-09-02 16:29:54 +04:00
parent 3b8ea43d80
commit 6d77b107cf

View File

@ -61,14 +61,16 @@ class intaro_intarocrm extends CModule
global $APPLICATION, $step, $arResult; global $APPLICATION, $step, $arResult;
if (!in_array('curl', get_loaded_extensions())) { if (!in_array('curl', get_loaded_extensions())) {
$APPLICATION->ThrowException( GetMessage("INTAROCRM_CURL_ERR") ); $APPLICATION->ThrowException(GetMessage("INTAROCRM_CURL_ERR"));
return false; return false;
} }
if (!date_default_timezone_get()) {
if (!ini_get('date.timezone')) { if (!ini_get('date.timezone')) {
$APPLICATION->ThrowException( GetMessage("DATE_TIMEZONE_ERR") ); $APPLICATION->ThrowException(GetMessage("DATE_TIMEZONE_ERR"));
return false; return false;
} }
}
include($this->INSTALL_PATH . '/../classes/general/RestApi.php'); include($this->INSTALL_PATH . '/../classes/general/RestApi.php');
include($this->INSTALL_PATH . '/../classes/general/ICrmOrderActions.php'); include($this->INSTALL_PATH . '/../classes/general/ICrmOrderActions.php');