Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web: when update venue, call it a "computer" rather than a "host". #5206

Merged
merged 1 commit into from
Apr 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions html/user/host_venue_action.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,24 @@

$host = BoincHost::lookup_id($hostid);
if (!$host) {
error_page("No such host");
error_page("No such computer");
}
if ($host->userid != $user->id) {
error_page("Not your host");
error_page("Not your computer");
}

$retval = $host->update("venue='$venue'");
if ($retval) {
page_head(tra("Host venue updated"));
page_head(tra("Computer venue updated"));
if ($venue == '') {
$venue = '('.tra("none").')';
}
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>
".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>
<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();
} else {
Expand Down