Skip to content

Commit

Permalink
KNL-1327 check for neo-prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Takacs committed Feb 4, 2015
1 parent 6d6033c commit 896dbaa
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,14 @@ private String getSiteSkin(Entity entity) {
siteSkin = site.getSkin();
}
}

String neoPrefix = serverConfigurationService.getString("portal.neoprefix", "neo-");
String portalTemplate = serverConfigurationService.getString("portal.templates", "neoskin");

if ("neoskin".equals(portalTemplate) && !siteSkin.startsWith(neoPrefix)) {
siteSkin = neoPrefix + siteSkin;
}

return siteSkin;
}

Expand Down

0 comments on commit 896dbaa

Please sign in to comment.