From c708ff0c29ecb828dbd38d5919d6b965948e6595 Mon Sep 17 00:00:00 2001 From: hns Date: Mon, 19 Feb 2001 17:54:16 +0000 Subject: [PATCH] fallback to hopobject if skin is not found in prototype --- src/helma/framework/core/RequestEvaluator.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/helma/framework/core/RequestEvaluator.java b/src/helma/framework/core/RequestEvaluator.java index 70e9352e..e420ac29 100644 --- a/src/helma/framework/core/RequestEvaluator.java +++ b/src/helma/framework/core/RequestEvaluator.java @@ -658,10 +658,16 @@ public class RequestEvaluator implements Runnable { if (thisObject != null && thisObject instanceof ESNode) n = ((ESNode) thisObject).getNode (); Prototype proto = app.getPrototype (n); + Skin skin = null; if (proto != null) - return proto.getSkin (skinname); - else - return null; + skin = proto.getSkin (skinname); + // if we have a thisObject and didn't find the skin, try in hopobject + if (skin == null) { + proto = app.typemgr.getPrototype ("hopobject"); + if (proto != null) + skin = proto.getSkin (skinname); + } + return skin; }