1
0
Fork 0
mirror of synced 2025-03-30 12:10:14 +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

@ -65,10 +65,12 @@ class intaro_intarocrm extends CModule
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');
include($this->INSTALL_PATH . '/../classes/general/ICrmOrderActions.php');