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.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/templateparser.cc b/server/src/templateparser.cc
index 8874b74..412924c 100644
--- a/server/src/templateparser.cc
+++ b/server/src/templateparser.cc
@@ -25,6 +25,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
#include "templateparser.h"
+#include "configuration.h"
// For assert
#include <assert.h>
@@ -44,6 +45,7 @@
#endif/*XML*/
#include <errno.h>
+#include <string.h>
#include "exception.h"
@@ -69,7 +71,7 @@ TemplateParser::TemplateParser(std::string course)
t = new Template();
current_macro = NULL;
- file = XML"/templates/" + course + ".xml";
+ file = Conf::xml_basedir + "/templates/" + course + ".xml";
printf("Using template file: %s\n", file.c_str());