Fix module theme loader

This commit is contained in:
Stian Thorgersen 2015-03-20 14:49:46 +01:00
parent bf9830dae8
commit 4494c2a731
3 changed files with 4 additions and 1 deletions

View file

@ -8,6 +8,8 @@
<module name="org.keycloak.keycloak-core"/>
<module name="org.keycloak.keycloak-model-api"/>
<module name="org.keycloak.keycloak-services"/>
<module name="org.keycloak.keycloak-forms-common-freemarker"/>
<module name="org.keycloak.keycloak-forms-common-themes"/>
<module name="org.jboss.modules"/>
</dependencies>
</module>

View file

@ -34,5 +34,6 @@
<module>basic-auth</module>
<module>fuse</module>
<module>kerberos</module>
<module>themes</module>
</modules>
</project>

View file

@ -26,7 +26,7 @@ public class JarThemeProvider implements ThemeProvider {
@Override
public Theme getTheme(String name, Theme.Type type) throws IOException {
return hasTheme(name, type) ? new ClassLoaderTheme(name, type, getClass().getClassLoader()) : null;
return hasTheme(name, type) ? themes.get(type).get(name) : null;
}
@Override