diff options
author | bertho <bertho> | 2009-02-04 11:37:49 +0000 |
---|---|---|
committer | bertho <bertho> | 2009-02-04 11:37:49 +0000 |
commit | 6ad7301c3a364a34747ecc631a8b239570c303fa (patch) | |
tree | 3627d97211ae8f7a53256b9447a9ca16f91fba5d /server/src/macroparser.cc | |
parent | 1bce9e4ebb9521c26fdbc586d4eadd6f2a52b618 (diff) |
- Add missing include files
- Add config option for xml macros and templates basedir
Diffstat (limited to 'server/src/macroparser.cc')
-rw-r--r-- | server/src/macroparser.cc | 4 |
1 files changed, 3 insertions, 1 deletions
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 <assert.h> @@ -44,6 +45,7 @@ #endif/*XML*/ #include <errno.h> +#include <string.h> #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()); |