First simple and not very efficient implementation of res.skinpath,
which can contain one singel directoy in which to look for skins. The skin resolution looks like this now: 1) res.skinpath (directory) 2) nodemanagers (internal HopObjects marked as skinmanagers) 3) application directory
This commit is contained in:
parent
c56befd4d4
commit
c6b7f10d11
1 changed files with 13 additions and 1 deletions
|
@ -209,6 +209,7 @@ public class RequestEvaluator implements Runnable {
|
|||
req.data = reqData;
|
||||
resData.setData (res.getResponseData());
|
||||
res.data = resData;
|
||||
res.skinpath = app.getProperty ("skinpath");
|
||||
|
||||
try {
|
||||
|
||||
|
@ -832,7 +833,18 @@ public class RequestEvaluator implements Runnable {
|
|||
if (skin != null) {
|
||||
return skin;
|
||||
}
|
||||
// Skin skin = null;
|
||||
// check for skin path
|
||||
if (res.skinpath != null) {
|
||||
File f = new File (res.skinpath, proto.getName());
|
||||
f = new File (f, skinname+".skin");
|
||||
if (f.exists ()) {
|
||||
SkinFile sf = new SkinFile (f, skinname, proto);
|
||||
skin = sf.getSkin ();
|
||||
if (skin != null)
|
||||
return skin;
|
||||
}
|
||||
}
|
||||
// check for Helma-internal skinmanager nodes
|
||||
if (skinmanagers == null)
|
||||
getSkinManagers ();
|
||||
do {
|
||||
|
|
Loading…
Add table
Reference in a new issue