Use getChildElement() rather than getNode() to resolve Node based skins.

This commit is contained in:
hns 2004-01-14 16:59:33 +00:00
parent 6a1466b0bc
commit 6f39e2109c

View file

@ -79,10 +79,10 @@ public final class SkinManager implements FilenameFilter {
// check if the skinset object is a HopObject (db based skin) // check if the skinset object is a HopObject (db based skin)
// or a String (file based skin) // or a String (file based skin)
if (skinset instanceof INode) { if (skinset instanceof INode) {
INode n = ((INode) skinset).getNode(prototype); INode n = (INode) ((INode) skinset).getChildElement(prototype);
if (n != null) { if (n != null) {
n = n.getNode(skinname); n = (INode) n.getChildElement(skinname);
if (n != null) { if (n != null) {
String skin = n.getString("skin"); String skin = n.getString("skin");