added timezone check before install
This commit is contained in:
parent
3b8ea43d80
commit
6d77b107cf
@ -65,10 +65,12 @@ class intaro_intarocrm extends CModule
|
|||||||
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');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user