}
/**
+ * @deprecated
* Determine whether this system is deployed using version control.
*
* Normally sites would tune their php error settings to prevent deprecation
* @return bool
*/
public static function isDevelopment() {
+ CRM_Core_Error::deprecatedWarning('isDevelopment() is deprecated. Set your php error_reporting or MySQL settings appropriately instead.');
static $cache = NULL;
if ($cache === NULL) {
global $civicrm_root;
],
'civi' => [
'version' => CRM_Utils_System::version(),
- 'dev' => (bool) CRM_Utils_System::isDevelopment(),
+ 'dev' => (\Civi::settings()->get('environment') === 'Development'),
'components' => array_keys(CRM_Core_Component::getEnabledComponents()),
'extensions' => preg_grep('/^uninstalled$/', CRM_Extension_System::singleton()->getManager()->getStatuses(), PREG_GREP_INVERT),
'multidomain' => CRM_Core_DAO::singleValueQuery('SELECT count(*) FROM civicrm_domain') > 1,