Skip to content

Commit

Permalink
SAK-30872 Solve calendar subscription message (sakaiproject#2462)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgarciaentornos authored and ottenhoff committed May 6, 2016
1 parent 61cc6e3 commit 7403941
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6380,7 +6380,7 @@ protected int generateICal(net.fortuna.ical4j.model.Calendar ical, List<String>
*/
public TimeRange getICalTimeRange()
{
int toMonthsInput = m_serverConfigurationService.getInt("calendar.export.next.months",6);
int toMonthsInput = m_serverConfigurationService.getInt("calendar.export.next.months",12);
int fromMonthsInput = m_serverConfigurationService.getInt("calendar.export.previous.months",6);

java.util.Calendar calTo = java.util.Calendar.getInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4039,8 +4039,8 @@ public String buildIcalExportPanelContext(VelocityPortlet portlet, Context conte

context.put("serverName", ServerConfigurationService.getServerName());

String icalInfoArr[] = {String.valueOf(ServerConfigurationService.getInt("calendar.export.previous.months",6)),
String.valueOf(ServerConfigurationService.getInt("calendar.export.next.months",6))};
String icalInfoArr[] = {String.valueOf(ServerConfigurationService.getInt("calendar.export.next.months",12)),
String.valueOf(ServerConfigurationService.getInt("calendar.export.previous.months",6))};
String icalInfoStr = rb.getFormattedMessage("ical.info",icalInfoArr);
context.put("icalInfoStr",icalInfoStr);

Expand Down Expand Up @@ -4070,8 +4070,8 @@ protected void buildOpaqueUrlCleanContext(VelocityPortlet portlet, Context conte
context.put("isMyWorkspace", isOnWorkspaceTab());
context.put("form-generate", BUTTON + "doOpaqueUrlGenerate");
context.put("form-cancel", BUTTON + "doCancel");
String icalInfoArr[] = {String.valueOf(ServerConfigurationService.getInt("calendar.export.previous.months",6)),
String.valueOf(ServerConfigurationService.getInt("calendar.export.next.months",6))};
String icalInfoArr[] = {String.valueOf(ServerConfigurationService.getInt("calendar.export.next.months",12)),
String.valueOf(ServerConfigurationService.getInt("calendar.export.previous.months",6))};
String icalInfoStr = rb.getFormattedMessage("ical.info",icalInfoArr);
context.put("icalInfoStr",icalInfoStr);
}
Expand All @@ -4086,8 +4086,8 @@ protected void buildOpaqueUrlExistingContext(VelocityPortlet portlet, Context co
String opaqueUrl = ServerConfigurationService.getAccessUrl()
+ CalendarService.calendarOpaqueUrlReference(calendarRef);

String icalInfoArr[] = {String.valueOf(ServerConfigurationService.getInt("calendar.export.previous.months",6)),
String.valueOf(ServerConfigurationService.getInt("calendar.export.next.months",6))};
String icalInfoArr[] = {String.valueOf(ServerConfigurationService.getInt("calendar.export.next.months",12)),
String.valueOf(ServerConfigurationService.getInt("calendar.export.previous.months",6))};
String icalInfoStr = rb.getFormattedMessage("ical.info",icalInfoArr);
context.put("icalInfoStr",icalInfoStr);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</h3>

<p class="messageInformation">
$icalInfoStr $tlang.getString("ical.info")<br/>
$icalInfoStr $tlang.getString("ical.info.public")<br/>
</p>

<p/>
Expand Down

0 comments on commit 7403941

Please sign in to comment.