# HG changeset patch # User Matthew Wild # Date 1299166059 0 # Node ID 845a59c99b4de47a34f4d03279b0a79aa97bc919 # Parent 8e9e5c7d97ff1edc103b9f80d05e19a777a540bc mod_muc_log_http: Fix iterator usage and indentation in loadTheme() (thanks tanget128) diff -r 8e9e5c7d97ff -r 845a59c99b4d mod_muc_log_http/muc_log_http/mod_muc_log_http.lua --- a/mod_muc_log_http/muc_log_http/mod_muc_log_http.lua Wed Feb 23 01:36:46 2011 +0500 +++ b/mod_muc_log_http/muc_log_http/mod_muc_log_http.lua Thu Mar 03 15:27:39 2011 +0000 @@ -767,9 +767,8 @@ end local function loadTheme(path) - local iter = lfs.dir(path); - for file in iter do - if file ~= "." and file ~= ".." then + for file in lfs.dir(path) do + if file ~= "." and file ~= ".." then module:log("debug", "opening theme file: " .. file); local tmp = split(file:gsub("\.html$", ""), "_"); local content = readFile(path .. "/" .. file);