summaryrefslogtreecommitdiff
path: root/server/src/templateparser.cc
diff options
context:
space:
mode:
authorbertho <bertho>2009-02-04 11:37:49 +0000
committerbertho <bertho>2009-02-04 11:37:49 +0000
commit6ad7301c3a364a34747ecc631a8b239570c303fa (patch)
tree3627d97211ae8f7a53256b9447a9ca16f91fba5d /server/src/templateparser.cc
parent1bce9e4ebb9521c26fdbc586d4eadd6f2a52b618 (diff)
- Add missing include files
- Add config option for xml macros and templates basedir
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());