Skip to content

Commit a0831c5

Browse files
committed
Merge pull request civicrm#19 from atif-shaikh/CRM-9419
Crm 9419
2 parents 1fb7a06 + 8714ade commit a0831c5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

admin/configure.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,12 @@ function civicrm_main() {
111111
);
112112

113113
$liveSite = substr_replace(JURI::root(), '', -1, 1);
114-
$siteKey = md5( uniqid( '', true ) . $liveSite );
114+
if ($civicrmUpgrade && defined('CIVICRM_SITE_KEY')) {
115+
$siteKey = CIVICRM_SITE_KEY;
116+
}
117+
else {
118+
$siteKey = md5(uniqid( '', true ) . $liveSite);
119+
}
115120

116121
// generate backend settings file
117122
$string = civicrm_config(FALSE, $siteKey);

0 commit comments

Comments
 (0)