comparison mod_http_muc_log/mod_http_muc_log.lua @ 3749:cb61f0e06de3

mod_http_muc_log: Fix sorting months It was sorting the wrong table
author Kim Alvefur <zash@zash.se>
date Sun, 17 Nov 2019 15:13:35 +0100
parents bdbbf11eac0c
children 9002c8a2165f
comparison
equal deleted inserted replaced
3748:27abf3b6819a 3749:cb61f0e06de3
230 wday = tmp.wday, day = i, href = days_t[i] and datetime.date(days_t[i]) 230 wday = tmp.wday, day = i, href = days_t[i] and datetime.date(days_t[i])
231 }; 231 };
232 current_day = current_day+1; 232 current_day = current_day+1;
233 end 233 end
234 end 234 end
235 table.sort(year, sort_m); 235 table.sort(months, sort_m);
236 end 236 end
237 table.sort(years, sort_Y); 237 table.sort(years, sort_Y);
238 238
239 -- Phew, all wrangled, all that's left is rendering it with the template 239 -- Phew, all wrangled, all that's left is rendering it with the template
240 240