Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Switching path configuration around

  • Loading branch information...
commit 5f7be0eef7be7bd8f14d06a49d0c8c93c97ba7cf 1 parent f827e84
@dphiffer dphiffer authored
Showing with 4 additions and 4 deletions.
  1. +3 −3 app/forum.lua
  2. +1 −1  app/forum/show_archive.lua
View
6 app/forum.lua
@@ -4,8 +4,8 @@ require "lfs"
require "json/json"
require "forum/utils"
-if forum_base ~= nil then
- lfs.chdir(forum_base)
+if base_path ~= nil then
+ lfs.chdir(base_path)
end
public_root = public_root or "/"
@@ -16,7 +16,7 @@ else
end
cgi = os.getenv("SCRIPT_NAME")
-if file_exists(archive_root) then
+if file_exists(archive_base) then
archive_class = 'show-archive'
else
archive_class = 'hide-archive'
View
2  app/forum/show_archive.lua
@@ -6,7 +6,7 @@ show_header({
})
io.write('<div id="articles">')
-files = get_media(archive_root .. "/videos", "mp4")
+files = get_media(archive_base .. "/videos", "mp4")
for i,file in ipairs(files) do
local title = string.sub(file, 14, -5)
local date = split(string.sub(file, 0, 10), '-')
Please sign in to comment.
Something went wrong with that request. Please try again.