We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a0831c5 + e61b5a8 commit 5f6a82fCopy full SHA for 5f6a82f
admin/configure.php
@@ -111,11 +111,15 @@ function civicrm_main() {
111
);
112
113
$liveSite = substr_replace(JURI::root(), '', -1, 1);
114
- if ($civicrmUpgrade && defined('CIVICRM_SITE_KEY')) {
115
- $siteKey = CIVICRM_SITE_KEY;
+ if ($civicrmUpgrade) {
+ require_once $configFile;
116
+ if (defined('CIVICRM_SITE_KEY')) {
117
+ $siteKey = CIVICRM_SITE_KEY;
118
+ }
119
}
- else {
- $siteKey = md5(uniqid( '', true ) . $liveSite);
120
+
121
+ if (empty($siteKey)) {
122
+ $siteKey = md5( uniqid( '', true ) . $liveSite );
123
124
125
// generate backend settings file
0 commit comments