Summary bar for /home defaults to reduced preset, everywhere else to full preset

This commit is contained in:
str4d
2012-06-11 05:29:27 +00:00
parent cc61f4eb61
commit e20f2d0bf6

View File

@ -748,9 +748,13 @@ public class SummaryHelper extends HelperBase {
public NewsHelper getNewsHelper() { return _newshelper; }
public List<String> getSummaryBarSections(String page) {
String config = _context.getProperty(PROP_SUMMARYBAR + page, null);
if (config == null)
config = _context.getProperty(PROP_SUMMARYBAR + "default", PRESET_FULL);
String config = "";
if ("home".equals(page))
config = _context.getProperty(PROP_SUMMARYBAR + page, PRESET_SHORT);
else
config = _context.getProperty(PROP_SUMMARYBAR + page, null);
if (config == null)
config = _context.getProperty(PROP_SUMMARYBAR + "default", PRESET_FULL);
return Arrays.asList(config.split("" + S));
}