mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-63037 mnet: fix hostexists string usage
This commit is contained in:
parent
fee1b8ce5f
commit
d2dd970b19
@ -59,9 +59,8 @@ class mnet_simple_host_form extends moodleform {
|
||||
$wwwroot = 'http://'.$wwwroot;
|
||||
}
|
||||
if ($host = $DB->get_record('mnet_host', array('wwwroot' => $wwwroot))) {
|
||||
global $CFG;
|
||||
return array('wwwroot' => get_string('hostexists', 'mnet',
|
||||
new moodle_url('/admin/mnet/peers.php', array('hostid' => $host->id))));
|
||||
$str = get_string('hostexists', 'mnet', (new moodle_url('/admin/mnet/peers.php', ['hostid' => $host->id]))->out());
|
||||
return array('wwwroot' => $str);
|
||||
}
|
||||
return array();
|
||||
}
|
||||
|
@ -82,7 +82,7 @@ $string['hideremote'] = 'Hide remote users';
|
||||
$string['host'] = 'host';
|
||||
$string['hostcoursenotfound'] = 'Host or course not found';
|
||||
$string['hostdeleted'] = 'Host deleted';
|
||||
$string['hostexists'] = 'A record already exists for a host with that hostname (it may be deleted). <a href="{$a}">click here</a> to edit that record.';
|
||||
$string['hostexists'] = 'A record already exists for a host with that hostname (it may be deleted). <a href="{$a}">Click here</a> to edit that record.';
|
||||
$string['hostlist'] = 'List of networked hosts';
|
||||
$string['hostname'] = 'Hostname';
|
||||
$string['hostnamehelp'] = 'The fully-qualified domain name of the remote host, e.g. www.example.com';
|
||||
|
Loading…
x
Reference in New Issue
Block a user