aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/file.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/file.lua b/common/file.lua
index 90c8ea2..5b5ebed 100644
--- a/common/file.lua
+++ b/common/file.lua
@@ -1,5 +1,7 @@
file = {}
+local mdroot = "/usr/local/apache2/htdocs"
+
function string.split(self, sep)
if not sep then sep = "%s" end
@@ -36,7 +38,7 @@ function file.write(path, contents)
end
function file.process(uri, templates, params)
- path = "/var/www/md" .. uri
+ path = mdroot .. uri
local contents = file.read(path)
if not contents then