From 0b749428b9308565aecea5627d56a92b1587a353 Mon Sep 17 00:00:00 2001 From: "varada%netscape.com" Date: Tue, 28 Mar 2000 02:26:25 +0000 Subject: [PATCH] fix for bug #32294 - the animated logo url is obtained from the chrome if http:// is missing - therefore the installer checks for it and if missing inserts it --- cck/ib/ib.cpp | 12 ++++++++++++ cck/ib/script.ib | 1 + 2 files changed, 13 insertions(+) diff --git a/cck/ib/ib.cpp b/cck/ib/ib.cpp index be53010296e9..e036a2ad1552 100644 --- a/cck/ib/ib.cpp +++ b/cck/ib/ib.cpp @@ -629,7 +629,19 @@ int StartIB(CString parms, WIDGET *curWidget) CString cdDir= GetGlobal("CD image"); CString networkDir = GetGlobal("Network"); CString ftpLocation = GetGlobal("FTPLocation"); +//checking to see if the AnimatedLogoURL has a http:// appended in front of it +//if not then we have to append it; + CString animLogoUrl = GetGlobal("AnimatedLogoURL"); + CString leftvalue = animLogoUrl.Left(7); + CString httpvalue = "http://"; + if (leftvalue.CompareNoCase("http://") != 0) + { + httpvalue = httpvalue + animLogoUrl; + SetGlobal("AnimatedLogoURL",httpvalue); + } + + if (cdDir.Compare("1") ==0) { _mkdir((char *)(LPCTSTR) cdPath); diff --git a/cck/ib/script.ib b/cck/ib/script.ib index 63611ba087ed..e87ff0b13507 100644 --- a/cck/ib/script.ib +++ b/cck/ib/script.ib @@ -9,3 +9,4 @@ replaceXPI(browser.xpi,bin/defaults/profile/bookmarks.html,%CustomBookmarkFile%) modifyDTD(browser.xpi,bin/chrome/navigator/locale/en-US/navigator.dtd,mainWindow.titlemodifier,%CompanyName%) modifyDTD(browser.xpi,bin/chrome/navigator/locale/en-US/navigator.dtd,throbber.url,%AnimatedLogoURL%) modifyJS(browser.xpi,bin/defaults/pref/all-ns.js,browser.startup.homepage,%HomePageURL%) +modifyJS(browser.xpi,bin/defaults/pref/all-ns.js,browser.throbber.url,%AnimatedLogoURL%)