Skip to content

Commit e61b5a8

Browse files
committed
CRM-9419 Changes
1 parent 8714ade commit e61b5a8

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

admin/configure.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,15 @@ function civicrm_main() {
111111
);
112112

113113
$liveSite = substr_replace(JURI::root(), '', -1, 1);
114-
if ($civicrmUpgrade && defined('CIVICRM_SITE_KEY')) {
115-
$siteKey = CIVICRM_SITE_KEY;
114+
if ($civicrmUpgrade) {
115+
require_once $configFile;
116+
if (defined('CIVICRM_SITE_KEY')) {
117+
$siteKey = CIVICRM_SITE_KEY;
118+
}
116119
}
117-
else {
118-
$siteKey = md5(uniqid( '', true ) . $liveSite);
120+
121+
if (empty($siteKey)) {
122+
$siteKey = md5( uniqid( '', true ) . $liveSite );
119123
}
120124

121125
// generate backend settings file

0 commit comments

Comments
 (0)