From f5f02c1615a30d88fbd0d77709ee9c924c048849 Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Mon, 29 Apr 2013 00:07:16 +0200 Subject: add template dir to config --- src/web/web.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/web/web.vala') diff --git a/src/web/web.vala b/src/web/web.vala index 3e58fe6..8d39153 100644 --- a/src/web/web.vala +++ b/src/web/web.vala @@ -844,7 +844,7 @@ public class WebServer { void handler_img(Soup.Server server, Soup.Message msg, string path, GLib.HashTable? query, Soup.ClientContext client) { try { - var f = File.new_for_path("templates/"+path); + var f = File.new_for_path(templatedir+path); uint8[] data = null; if(f.query_exists() && f.load_contents(null, out data, null)) { -- cgit v1.2.3