summaryrefslogtreecommitdiff
path: root/server/src/server.cc
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/server.cc')
-rw-r--r--server/src/server.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/server.cc b/server/src/server.cc
index b5631f0..77b3a6f 100644
--- a/server/src/server.cc
+++ b/server/src/server.cc
@@ -56,6 +56,8 @@ static void connection(TCPSocket &socket)
socket.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
socket.write("<pracro version=\"1.0\">\n");
+ Database db;
+
/*
//
// Handle commits
@@ -145,7 +147,7 @@ static void connection(TCPSocket &socket)
socket.write("\">\n");
if(macro.attributes["name"] == request.macro) {
- widgetgenerator(socket, macro, lqm);
+ widgetgenerator(socket, macro, lqm, db);
}
socket.write(" </macro>\n");