Fix module theme loader
This commit is contained in:
parent
bf9830dae8
commit
4494c2a731
3 changed files with 4 additions and 1 deletions
|
@ -8,6 +8,8 @@
|
||||||
<module name="org.keycloak.keycloak-core"/>
|
<module name="org.keycloak.keycloak-core"/>
|
||||||
<module name="org.keycloak.keycloak-model-api"/>
|
<module name="org.keycloak.keycloak-model-api"/>
|
||||||
<module name="org.keycloak.keycloak-services"/>
|
<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"/>
|
<module name="org.jboss.modules"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</module>
|
</module>
|
||||||
|
|
|
@ -34,5 +34,6 @@
|
||||||
<module>basic-auth</module>
|
<module>basic-auth</module>
|
||||||
<module>fuse</module>
|
<module>fuse</module>
|
||||||
<module>kerberos</module>
|
<module>kerberos</module>
|
||||||
|
<module>themes</module>
|
||||||
</modules>
|
</modules>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -26,7 +26,7 @@ public class JarThemeProvider implements ThemeProvider {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Theme getTheme(String name, Theme.Type type) throws IOException {
|
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
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue