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:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user