Merge pull request #5206 from BOINC/dpa_venue

This commit is contained in:
Vitalii Koshura 2023-04-23 01:12:57 +02:00 committed by GitHub
commit 2d7e82b2f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -30,24 +30,24 @@ $hostid = get_int("hostid");
$host = BoincHost::lookup_id($hostid); $host = BoincHost::lookup_id($hostid);
if (!$host) { if (!$host) {
error_page("No such host"); error_page("No such computer");
} }
if ($host->userid != $user->id) { if ($host->userid != $user->id) {
error_page("Not your host"); error_page("Not your computer");
} }
$retval = $host->update("venue='$venue'"); $retval = $host->update("venue='$venue'");
if ($retval) { if ($retval) {
page_head(tra("Host venue updated")); page_head(tra("Computer venue updated"));
if ($venue == '') { if ($venue == '') {
$venue = '('.tra("none").')'; $venue = '('.tra("none").')';
} }
echo " echo "
".tra("The venue of this host has been set to %1.", "<b>$venue</b>")." ".tra("The venue of this computer has been set to %1.", "<b>$venue</b>")."
<p> <p>
".tra("This change will take effect the next time the host communicates with this project.")." ".tra("Preference changes will take effect when the computer communicates with this project.")."
<p> <p>
<a href=show_host_detail.php?hostid=$hostid>".tra("Return to host page")."</a>. <a href=show_host_detail.php?hostid=$hostid>".tra("Return to computer page")."</a>.
"; ";
page_tail(); page_tail();
} else { } else {