Bustage fix for one of the recent checkins
authorPhilipp Kewisch <mozilla@kewis.ch>
Thu, 21 Jul 2011 17:47:06 +0300
changeset 8347 3fb9f6c5653781ecc09dc1d72942f9c03e63fdec
parent 8346 2c81a6328404ddbac3258dce05a6933532d7b107
child 8348 dbccd428da1a5e2e474c17c8c3b703c9608978c4
push idunknown
push userunknown
push dateunknown
Bustage fix for one of the recent checkins
calendar/base/src/calCalendarManager.js
--- a/calendar/base/src/calCalendarManager.js
+++ b/calendar/base/src/calCalendarManager.js
@@ -266,17 +266,17 @@ calCalendarManager.prototype = {
                 // been removed. Calendar servers might still want to know what
                 // client is used for access, so add our UA String to each
                 // request.
                 let httpChannel = aSubject.QueryInterface(Components.interfaces.nsIHttpChannel);
                 try {
                     // NOTE: For some reason, this observer call doesn't have
                     // the "cal" namespace defined
                     let ua = httpChannel.getRequestHeader("User-Agent");
-                    let calUAString = cal.getPrefSafe("calendar.useragent.extra");
+                    let calUAString = getPrefSafe("calendar.useragent.extra");
                     if (calUAString && ua.indexOf(calUAString) < 0) {
                         // User-Agent is not a mergeable header. We need to
                         // merge the user agent ourselves.
                         httpChannel.setRequestHeader("User-Agent",
                                                      ua + " " + calUAString,
                                                      false);
                     }
                 } catch (e if e.result == Components.results.NS_ERROR_NOT_AVAILABLE) {