rem:  var remotePath = getCalendarManager().getCalendarPref(cal, "publishpath"); if (remotePath && remotePath != "") { 
add:  var remotePath = getCalendarManager().getCalendarPref(cal, "remote-ics-path"); if (remotePath && remotePath.length && remotePath.length > 0) { 
context: function publishEntireCalendar(){    var args = new Object();    var publishObject = new Object( );    args.onOk =  self.publishEntireCalendarDialogResponse;    // get the currently selected calendar    var cal = getDefaultCalendar();    publishObject.calendar = cal;    // get a remote path as a pref of the calendar    var remotePath = getCalendarManager().getCalendarPref(cal, "publishpath");    if (remotePath && remotePath != "") {        publishObject.remotePath = remotePath;    }    args.publishObject = publishObject;    openDialog("chrome://calendar/content/publishDialog.xul", "caPublishEvents", "chrome,titlebar,modal", args );}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/8e3214e2abdbf84932493b8cc2239f75f4053bf3/publish.js/buggy/calendar/resources/content/publish.js