client: if <client_new_version_text> present, don't link to BOINC web site

This commit is contained in:
David Anderson 2013-06-05 16:55:34 -07:00
parent 254d8318e8
commit 1f0f8e247a
1 changed files with 18 additions and 10 deletions

View File

@ -83,16 +83,24 @@ static bool parse_version(FILE* f, char* new_version, int len) {
}
static void show_newer_version_msg(const char* new_vers) {
msg_printf_notice(0, true,
"http://boinc.berkeley.edu/manager_links.php?target=notice&controlid=download",
"%s (%s) <a href=%s>%s</a>",
config.client_new_version_text.empty()
? _("A new version of BOINC is available.")
: config.client_new_version_text.c_str(),
new_vers,
config.client_download_url.c_str(),
_("Download")
);
if (config.client_new_version_text.empty()) {
msg_printf_notice(0, true,
"http://boinc.berkeley.edu/manager_links.php?target=notice&controlid=download",
"%s (%s) <a href=%s>%s</a>",
_("A new version of BOINC is available."),
new_vers,
config.client_download_url.c_str(),
_("Download")
);
} else {
msg_printf_notice(0, true, NULL,
"%s (%s) <a href=%s>%s</a>",
config.client_new_version_text.c_str(),
new_vers,
config.client_download_url.c_str(),
_("Download")
);
}
}
void GET_CURRENT_VERSION_OP::handle_reply(int http_op_retval) {