# HG changeset patch # User Thilo Cestonaro # Date 1263547077 -3600 # Node ID 7a2d33e8ad1f5aa64c21ea3630dfd847abd31374 # Parent e6592d8305cb8634146f866e7d7aa289a736d1bb mod_muc_log_http: inverse year sort order diff -r e6592d8305cb -r 7a2d33e8ad1f 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 Fri Jan 15 09:58:21 2010 +0100 +++ b/mod_muc_log_http/muc_log_http/mod_muc_log_http.lua Fri Jan 15 10:17:57 2010 +0100 @@ -307,10 +307,10 @@ end if attributes ~= nil and room ~= nil then local alreadyDoneYears = {}; - for file in lfs.dir(path) do - local year, month, day = file:match("^(%d%d)(%d%d)(%d%d)"); + for folder in lfs.dir(path) do + local year, month, day = folder:match("^(%d%d)(%d%d)(%d%d)"); if year ~= nil and alreadyDoneYears[year] == nil then - days = days .. createYear(year, {callback=perDayCallback, path=path}); + days = createYear(year, {callback=perDayCallback, path=path}) .. days; alreadyDoneYears[year] = true; end end