Skip to content

Commit

Permalink
Merge pull request #16842 from demeritcowboy/lang-install-crash
Browse files Browse the repository at this point in the history
dev/translation#40 - Fix crash when change language on installer page
  • Loading branch information
seamuslee001 authored Mar 25, 2020
2 parents dc966a6 + d0051c5 commit 269f890
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions install/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@
$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.
Expand Down

0 comments on commit 269f890

Please sign in to comment.