From d0051c50d96441667138e1bd12afffed9357c6e8 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Wed, 18 Mar 2020 18:30:44 -0400 Subject: [PATCH] fix crash when change language on installer page --- install/index.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install/index.php b/install/index.php index 585cea24ac..57446cd85d 100644 --- a/install/index.php +++ b/install/index.php @@ -138,6 +138,11 @@ global $tsLocale; $tsLocale = 'en_US'; $seedLanguage = 'en_US'; +// Backwards compatibility with default location of l10n files +if (!defined('CIVICRM_L10N_BASEDIR') && file_exists($crmPath . DIRECTORY_SEPARATOR . 'l10n')) { + define('CIVICRM_L10N_BASEDIR', $crmPath . DIRECTORY_SEPARATOR . 'l10n'); +} + // CRM-16801 This validates that seedLanguage is valid by looking in $langs. // NB: the variable is initial a $_REQUEST for the initial page reload, // then becomes a $_POST when the installation form is submitted. -- 2.25.1