Include our siteId if appropriate.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1803 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -73,7 +73,11 @@ public class InvocationContext extends VelocityContext
|
|||||||
public Template getTemplate (String path)
|
public Template getTemplate (String path)
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
return RuntimeSingleton.getTemplate(path);
|
String siteId = (String)get("__siteid__");
|
||||||
|
if (siteId != null) {
|
||||||
|
path = siteId + ":" + path;
|
||||||
|
}
|
||||||
|
return RuntimeSingleton.getRuntimeServices().getTemplate(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user