Read rootPrototype and userPrototype in init() instead of in updateProperties()

This commit is contained in:
hns 2005-05-13 15:25:58 +00:00
parent 70ea9f7aa3
commit 0deb7c3a53

View file

@ -356,6 +356,14 @@ public final class Application implements IPathElement, Runnable {
// create the skin manager
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
// ugly obsolete crap. Don't bother.
ResourceProperties p = new ResourceProperties();
@ -1710,13 +1718,6 @@ public final class Application implements IPathElement, Runnable {
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");
// update the XML-RPC access list, containting prototype.method