summaryrefslogtreecommitdiff
path: root/server/src/templateparser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/templateparser.cc')
-rw-r--r--server/src/templateparser.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/templateparser.cc b/server/src/templateparser.cc
index 49cc29d..8ddf6d2 100644
--- a/server/src/templateparser.cc
+++ b/server/src/templateparser.cc
@@ -57,13 +57,13 @@ void TemplateParser::error(const char* fmt, ...)
free(p);
}
-TemplateParser::TemplateParser(std::string course)
+TemplateParser::TemplateParser(std::string templatefile)
{
state = UNDEFINED;
t = new Template();
current_macro = NULL;
- file = Conf::xml_basedir + "/templates/" + course + ".xml";
+ file = templatefile;//Conf::xml_basedir + "/templates/" + course + ".xml";
PRACRO_DEBUG(macro, "Using template file: %s\n", file.c_str());
@@ -168,7 +168,7 @@ int main()
Conf::xml_basedir = "../xml/";
try {
- TemplateParser parser("example");
+ TemplateParser parser("../xml/templates/example.xml");
parser.parse();
Template *t = parser.getTemplate();