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:30:50 +04:00
parent 6c340f17b2
commit d02d4a9f1a

View File

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