mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-24 03:30:40 +02:00
* A few fixes to standard MCI codes
* Load user groups properly * Configurable/themeable date time formats
This commit is contained in:
parent
40a4f8caba
commit
4288c5b2e9
6 changed files with 27 additions and 6 deletions
|
@ -52,8 +52,18 @@ function loadTheme(themeID, cb) {
|
|||
}
|
||||
}
|
||||
return pwChar;
|
||||
},
|
||||
getDateFormat : function(style) {
|
||||
style = style || 'short';
|
||||
|
||||
var format = Config.defaults.dateTimeFormat[style] || 'MM/DD/YYYY';
|
||||
|
||||
if(_.has(theme, 'customization.defaults.dateTimeFormat')) {
|
||||
return theme.customization.defaults.dateTimeFormat[style] || format;
|
||||
}
|
||||
return format;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
cb(null, theme);
|
||||
} catch(e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue