Read rootPrototype and userPrototype in init() instead of in updateProperties()
This commit is contained in:
parent
70ea9f7aa3
commit
0deb7c3a53
1 changed files with 8 additions and 7 deletions
|
@ -356,6 +356,14 @@ public final class Application implements IPathElement, Runnable {
|
||||||
// create the skin manager
|
// create the skin manager
|
||||||
skinmgr = new SkinManager(this);
|
skinmgr = new SkinManager(this);
|
||||||
|
|
||||||
|
// read in root id, root prototype, user prototype
|
||||||
|
rootId = props.getProperty("rootid", "0");
|
||||||
|
rootPrototype = props.getProperty("rootprototype", "root");
|
||||||
|
userPrototype = props.getProperty("userprototype", "user");
|
||||||
|
|
||||||
|
rootMapping = getDbMapping(rootPrototype);
|
||||||
|
userMapping = getDbMapping(userPrototype);
|
||||||
|
|
||||||
// The whole user/userroot handling is basically old
|
// The whole user/userroot handling is basically old
|
||||||
// ugly obsolete crap. Don't bother.
|
// ugly obsolete crap. Don't bother.
|
||||||
ResourceProperties p = new ResourceProperties();
|
ResourceProperties p = new ResourceProperties();
|
||||||
|
@ -1710,13 +1718,6 @@ public final class Application implements IPathElement, Runnable {
|
||||||
baseURI = "/";
|
baseURI = "/";
|
||||||
}
|
}
|
||||||
|
|
||||||
// read in root id, root prototype, user prototype
|
|
||||||
rootId = props.getProperty("rootid", "0");
|
|
||||||
rootPrototype = props.getProperty("rootprototype", "root");
|
|
||||||
userPrototype = props.getProperty("userprototype", "user");
|
|
||||||
rootMapping = getDbMapping(rootPrototype);
|
|
||||||
userMapping = getDbMapping(userPrototype);
|
|
||||||
|
|
||||||
hrefRootPrototype = props.getProperty("hrefrootprototype");
|
hrefRootPrototype = props.getProperty("hrefrootprototype");
|
||||||
|
|
||||||
// update the XML-RPC access list, containting prototype.method
|
// update the XML-RPC access list, containting prototype.method
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue