trivial bug fix for help

This commit is contained in:
varada%netscape.com 2000-05-16 21:05:11 +00:00
parent 88c462d7b2
commit 84f930f6aa
3 changed files with 5 additions and 3 deletions

View File

@ -30,7 +30,7 @@ void CreateHelpMenu (void)
ofstream Hlp(HelpMenuFile);
CString HelpMenuName = GetGlobal("HelpMenuCommandName");
CString HelpMenuUrl = GetGlobal("HelpMenuCommandUrl");
CString HelpMenuUrl = GetGlobal("HelpMenuCommandURL");
if (HelpMenuName.IsEmpty())
HelpMenuName = config + "-Help";

View File

@ -14,3 +14,4 @@ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<menuseparator position="4" />
<menuitem id="feedBack" position="5" value="&feedBackCmd.label;" oncommand="openTopWin('urn:clienturl:help:feedback')" />
<menuitem id="intUsers" position="6" value="&intUsersCmd.label;"
oncommand="openTopWin('urn:clienturl:help:intlusers')" />

View File

@ -678,13 +678,14 @@ int StartIB(CString parms, WIDGET *curWidget)
SetGlobal("AnimatedLogoURL",httpvalue);
}
CString HelpUrl = GetGlobal("HelpMenuCommandUrl");
CString HelpUrl = GetGlobal("HelpMenuCommandURL");
leftvalue = HelpUrl.Left(7);
httpvalue = "http://";
if (leftvalue.CompareNoCase("http://") != 0)
{
httpvalue = httpvalue + HelpUrl;
SetGlobal("HelpMenuCommandUrl",httpvalue);
SetGlobal("HelpMenuCommandURL",httpvalue);
}
// Create the HelpMenu.xul in the beginning so that it can be called from the script.ib
CString setHlpXul = tempPath +"\\HelpMenu.xul";