From 6ad7301c3a364a34747ecc631a8b239570c303fa Mon Sep 17 00:00:00 2001 From: bertho Date: Wed, 4 Feb 2009 11:37:49 +0000 Subject: - Add missing include files - Add config option for xml macros and templates basedir --- server/src/macroparser.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server/src/macroparser.cc') diff --git a/server/src/macroparser.cc b/server/src/macroparser.cc index 582c90c..ae7f648 100644 --- a/server/src/macroparser.cc +++ b/server/src/macroparser.cc @@ -25,6 +25,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "macroparser.h" +#include "configuration.h" // For assert #include @@ -44,6 +45,7 @@ #endif/*XML*/ #include +#include #include "exception.h" @@ -70,7 +72,7 @@ MacroParser::MacroParser(std::string macro) current_map = NULL; current_script = NULL; - file = XML"/macros/" + macro + ".xml"; + file = Conf::xml_basedir + "/macros/" + macro + ".xml"; printf("Using macro file: %s\n", file.c_str()); -- cgit v1.2.3