MDL-15249 $_SERVER['HTTP_HOST'] not availabel in CLI script, replaced by parsing of wwwroot which should give the same info

This commit is contained in:
skodak
2009-05-25 20:55:27 +00:00
parent a600ad359a
commit aa282b10fb
4 changed files with 17 additions and 4 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ $settings->add(new admin_setting_heading('chat_daemon_heading', get_string('meth
get_string('explainmethoddaemon', 'chat')));
$settings->add(new admin_setting_configtext('chat_serverhost', get_string('serverhost', 'chat'),
get_string('configserverhost', 'chat'), $_SERVER['HTTP_HOST']));
get_string('configserverhost', 'chat'), get_host_from_url($CFG->wwwroot)));
$settings->add(new admin_setting_configtext('chat_serverip', get_string('serverip', 'chat'),
get_string('configserverip', 'chat'), '127.0.0.1'));