From: Mathieu Lutfy Date: Mon, 23 Feb 2015 15:54:00 +0000 (-0500) Subject: install/index.php: set civicrm_default_error_scope to NULL so that if there is an... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0ad1e2de5442b9456ed1d64ed1fbf4e2084abd95;p=civicrm-core.git install/index.php: set civicrm_default_error_scope to NULL so that if there is an SQL error during install, it gets print_r(), instead of using Smarty templates to display an error (Smarty will not yet have been initialized). --- diff --git a/install/index.php b/install/index.php index 3d4e7c7d2b..cf9cbcfa63 100644 --- a/install/index.php +++ b/install/index.php @@ -167,6 +167,8 @@ if (isset($_REQUEST['seedLanguage']) and isset($langs[$_REQUEST['seedLanguage']] } $config = CRM_Core_Config::singleton(FALSE); +$GLOBALS['civicrm_default_error_scope'] = NULL; + // The translation files are in the parent directory (l10n) $config->gettextResourceDir = '..' . DIRECTORY_SEPARATOR . $config->gettextResourceDir; $i18n = CRM_Core_I18n::singleton();