commit
2eea8a3413
|
@ -400,7 +400,7 @@ export class AddonCalendarHelperProvider {
|
||||||
): Promise<{ daynames: Partial<AddonCalendarDayName>[]; weeks: AddonCalendarWeek[] }> {
|
): Promise<{ daynames: Partial<AddonCalendarDayName>[]; weeks: AddonCalendarWeek[] }> {
|
||||||
const site = await CoreSites.getSite(siteId);
|
const site = await CoreSites.getSite(siteId);
|
||||||
// Get starting week day user preference, fallback to site configuration.
|
// Get starting week day user preference, fallback to site configuration.
|
||||||
let startWeekDayStr = site.getStoredConfig('calendar_startwday');
|
let startWeekDayStr = site.getStoredConfig('calendar_startwday') || '1';
|
||||||
startWeekDayStr = await CoreConfig.get(AddonCalendarProvider.STARTING_WEEK_DAY, startWeekDayStr);
|
startWeekDayStr = await CoreConfig.get(AddonCalendarProvider.STARTING_WEEK_DAY, startWeekDayStr);
|
||||||
const startWeekDay = parseInt(startWeekDayStr, 10);
|
const startWeekDay = parseInt(startWeekDayStr, 10);
|
||||||
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 514 B |
Loading…
Reference in New Issue