]> git.mjollnir.org Git - moodle.git/commitdiff
FIxed site identifier
authormoodler <moodler>
Tue, 23 Jan 2007 04:58:50 +0000 (04:58 +0000)
committermoodler <moodler>
Tue, 23 Jan 2007 04:58:50 +0000 (04:58 +0000)
admin/index.php

index 9895b233100eb4654a7b85b25dcda86e2d88c06e..96814f39b8210539e535d1e6443635fdc6635201 100644 (file)
 
 /// 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.