diff 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
line wrap: on
line diff
--- a/mod_register_apps/mod_register_apps.lua	Sat Sep 04 14:56:04 2021 +0200
+++ b/mod_register_apps/mod_register_apps.lua	Wed Sep 08 19:28:42 2021 +0200
@@ -160,7 +160,7 @@
 local function remove_all_apps()
 	for k, v in pairs(site_apps) do
 		if v._source == module.name then
-			remove_app(k);
+			remove_app(v);
 		end
 	end
 end