projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26c73ac
)
CRM-13584: After non-en_US installation in Drupal, revert settings to force defaults...
author
Mathieu Lutfy
<mathieu@bidon.ca>
Mon, 2 Mar 2015 21:06:59 +0000
(16:06 -0500)
committer
Mathieu Lutfy
<mathieu@bidon.ca>
Mon, 2 Mar 2015 21:06:59 +0000
(16:06 -0500)
install/index.php
patch
|
blob
|
blame
|
history
diff --git
a/install/index.php
b/install/index.php
index 2e2e6ff16cd9134858d71a52bbc9468fe0b865cc..77477eae500fd9764cf7c4928fc48752e3f7ec17 100644
(file)
--- a/
install/index.php
+++ b/
install/index.php
@@
-1354,6
+1354,10
@@
class Installer extends InstallRequirements {
//change the default language to one chosen
if (isset($config['seedLanguage']) && $config['seedLanguage'] != 'en_US') {
+ // This ensures that defaults get set, otherwise the user will login
+ // and most configurations will be empty, not set to en_US defaults.
+ civicrm_api3('Setting', 'revert');
+
civicrm_api3('Setting', 'create', array(
'domain_id' => 'current_domain',
'lcMessages' => $config['seedLanguage'],