Software /
code /
prosody-modules
Changeset
343:845a59c99b4d
mod_muc_log_http: Fix iterator usage and indentation in loadTheme() (thanks tanget128)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 03 Mar 2011 15:27:39 +0000 |
parents | 342:8e9e5c7d97ff |
children | 344:2b0f2160fc61 |
files | mod_muc_log_http/muc_log_http/mod_muc_log_http.lua |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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);