summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/src/macrotool_dump.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/src/macrotool_dump.cc b/server/src/macrotool_dump.cc
index 990d247..d108e54 100644
--- a/server/src/macrotool_dump.cc
+++ b/server/src/macrotool_dump.cc
@@ -90,7 +90,7 @@ static std::map<std::string, struct _macro> macroList()
std::vector<std::string>::iterator tfs = templatefiles.begin();
while(tfs != templatefiles.end()) {
std::string templ = tfs->substr(0, tfs->length() - 4);
- TemplateParser parser(templ);
+ TemplateParser parser(Conf::xml_basedir + "/templates/" + *tfs);
parser.parse();
Template *t = parser.getTemplate();
std::vector<Macro>::iterator ms = t->macros.begin();
@@ -154,8 +154,7 @@ static std::map<std::string, struct _template> templateList()
std::vector<std::string> templatefiles = getTemplates();
std::vector<std::string>::iterator tfs = templatefiles.begin();
while(tfs != templatefiles.end()) {
- std::string templ = tfs->substr(0, tfs->length() - 4);
- TemplateParser parser(templ);
+ TemplateParser parser(Conf::xml_basedir + "/templates/" + *tfs);
parser.parse();
Template *t = parser.getTemplate();