comparison mod_register_apps/mod_register_apps.lua @ 4672:0b084f63fed0

mod_register_apps: Fix removal on unload (thanks ibikk) Fixes "attempt to index local 'app_info' (a number value)"
author Kim Alvefur <zash@zash.se>
date Wed, 08 Sep 2021 19:28:42 +0200
parents 635907a5d2c8
children 733e5513f691
comparison
equal deleted inserted replaced
4671:98bf0f597df4 4672:0b084f63fed0
158 158
159 -- Remove all apps added by this module 159 -- Remove all apps added by this module
160 local function remove_all_apps() 160 local function remove_all_apps()
161 for k, v in pairs(site_apps) do 161 for k, v in pairs(site_apps) do
162 if v._source == module.name then 162 if v._source == module.name then
163 remove_app(k); 163 remove_app(v);
164 end 164 end
165 end 165 end
166 end 166 end
167 167
168 local mime_map = { 168 local mime_map = {