X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=install%2Fcivicrm.php;h=bc0e608f2382e95dd829a016f7358feb4a91a314;hb=946389fbb640eb2cafc13531dffc0b3bc2407b27;hp=50e42710811059fb85a438bcf007c5259777be22;hpb=6543bd41af5a1140a22992a0489d38cc50dba90d;p=civicrm-core.git diff --git a/install/civicrm.php b/install/civicrm.php index 50e4271081..bc0e608f23 100644 --- a/install/civicrm.php +++ b/install/civicrm.php @@ -1,7 +1,7 @@ $crmPath, 'templateCompileDir' => $compileDir, @@ -274,6 +275,18 @@ function civicrm_config(&$config) { // CRM-12386 $params['crmRoot'] = addslashes($params['crmRoot']); + //CRM-16421 + + $extraSettings[] = sprintf('$civicrm_paths[\'wp.frontend.base\'][\'url\'] = %s;', var_export(home_url() . '/', 1)); + $extraSettings[] = sprintf('$civicrm_paths[\'wp.backend.base\'][\'url\'] = %s;', var_export(admin_url(), 1)); + $extraSettings[] = sprintf('$civicrm_setting[\'URL Preferences\'][\'userFrameworkResourceURL\'] = %s;', var_export(plugin_dir_url(CIVICRM_PLUGIN_FILE) . 'civicrm', 1)); + } + + if ($extraSettings) { + $params['extraSettings'] = "Additional settings generated by installer:\n" . implode("\n", $extraSettings); + } + else { + $params['extraSettings'] = ""; } $params['siteKey'] = md5(rand() . mt_rand() . rand() . uniqid('', TRUE) . $params['baseURL']);