mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 10:29:15 +00:00
Whoops, I broke the doc browser (not that anyone would notice since nobody
READS the docs, but anyway.. :). Fix it.
This commit is contained in:
parent
34c18c4fc5
commit
a281594c29
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54847
@ -96,17 +96,17 @@ docShowDocument(dialogMenuItem *self)
|
||||
"properly set in the Options editor.", browser);
|
||||
return DITEM_FAILURE;
|
||||
}
|
||||
if (!strcmp(str, "Home"))
|
||||
if (!strstr(str, "Home"))
|
||||
where = "http://www.freebsd.org";
|
||||
else if (!strcmp(str, "Other"))
|
||||
else if (!strstr(str, "Other"))
|
||||
where = msgGetInput("http://www.freebsd.org", "Please enter the URL of the location you wish to visit.");
|
||||
else if (!strcmp(str, "FAQ")) {
|
||||
else if (!strstr(str, "FAQ")) {
|
||||
strcpy(target, "/usr/share/doc/faq/index.html");
|
||||
if (!file_readable(target))
|
||||
strcpy(target, "http://www.freebsd.org/FAQ");
|
||||
where = target;
|
||||
}
|
||||
else if (!strcmp(str, "Handbook")) {
|
||||
else if (!strstr(str, "Handbook")) {
|
||||
strcpy(target, "/usr/share/doc/handbook/index.html");
|
||||
if (!file_readable(target))
|
||||
strcpy(target, "http://www.freebsd.org/handbook");
|
||||
|
@ -96,17 +96,17 @@ docShowDocument(dialogMenuItem *self)
|
||||
"properly set in the Options editor.", browser);
|
||||
return DITEM_FAILURE;
|
||||
}
|
||||
if (!strcmp(str, "Home"))
|
||||
if (!strstr(str, "Home"))
|
||||
where = "http://www.freebsd.org";
|
||||
else if (!strcmp(str, "Other"))
|
||||
else if (!strstr(str, "Other"))
|
||||
where = msgGetInput("http://www.freebsd.org", "Please enter the URL of the location you wish to visit.");
|
||||
else if (!strcmp(str, "FAQ")) {
|
||||
else if (!strstr(str, "FAQ")) {
|
||||
strcpy(target, "/usr/share/doc/faq/index.html");
|
||||
if (!file_readable(target))
|
||||
strcpy(target, "http://www.freebsd.org/FAQ");
|
||||
where = target;
|
||||
}
|
||||
else if (!strcmp(str, "Handbook")) {
|
||||
else if (!strstr(str, "Handbook")) {
|
||||
strcpy(target, "/usr/share/doc/handbook/index.html");
|
||||
if (!file_readable(target))
|
||||
strcpy(target, "http://www.freebsd.org/handbook");
|
||||
|
Loading…
Reference in New Issue
Block a user