From 0ad1e2de5442b9456ed1d64ed1fbf4e2084abd95 Mon Sep 17 00:00:00 2001 From: Mathieu Lutfy Date: Mon, 23 Feb 2015 10:54:00 -0500 Subject: [PATCH] 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). --- install/index.php | 2 ++ 1 file changed, 2 insertions(+) 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(); -- 2.25.1