fix crash when change language on installer page
authordemeritcowboy <demeritcowboy@hotmail.com>
Wed, 18 Mar 2020 22:30:44 +0000 (18:30 -0400)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Wed, 18 Mar 2020 22:30:44 +0000 (18:30 -0400)
install/index.php

index 585cea24ac0112f1630ee3039f728031395c1451..57446cd85db6580d07f532c0b52e523497d19442 100644 (file)
@@ -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.