Skip to content

Commit

Permalink
Merge pull request sakaiproject#142 from ktakacs/KNL-1327
Browse files Browse the repository at this point in the history
KNL-1327 check for neo-prefix
  • Loading branch information
buckett committed Feb 5, 2015
2 parents 7161f31 + 896dbaa commit 2f7154d
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 2f7154d

Please sign in to comment.