added timezone check before install
This commit is contained in:
parent
6c340f17b2
commit
d02d4a9f1a
@ -61,13 +61,15 @@ 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 (!ini_get('date.timezone')) {
|
if (!date_default_timezone_get()) {
|
||||||
$APPLICATION->ThrowException( GetMessage("DATE_TIMEZONE_ERR") );
|
if (!ini_get('date.timezone')) {
|
||||||
return false;
|
$APPLICATION->ThrowException(GetMessage("DATE_TIMEZONE_ERR"));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
include($this->INSTALL_PATH . '/../classes/general/RestApi.php');
|
include($this->INSTALL_PATH . '/../classes/general/RestApi.php');
|
||||||
|
Loading…
Reference in New Issue
Block a user