Permalink
Browse files

Fixed site identifier

  • Loading branch information...
1 parent 1c0d156 commit 8f716e31b3f28d6fdcb7b1672b625625119d0e33 moodler committed Jan 23, 2007
Showing with 2 additions and 2 deletions.
  1. +1 −1 admin/index.php
  2. +1 −1 admin/register.php
View
@@ -258,7 +258,7 @@
/// Define the unique site ID code if it isn't already
if (empty($CFG->siteidentifier)) { // Unique site identification code
- set_config('siteidentifier', random_string(32));
+ set_config('siteidentifier', random_string(32).$_SERVER['HTTP_HOST']);
}
/// Check if the guest user exists. If not, create one.
View
@@ -26,7 +26,7 @@
}
if (empty($CFG->siteidentifier)) { // Unique site identification code
- set_config('siteidentifier', random_string(32));
+ set_config('siteidentifier', random_string(32).$_SERVER['HTTP_HOST']);
}

0 comments on commit 8f716e3

Please sign in to comment.