changeset 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 98bf0f597df4
children eee7ef8eb0a2
files mod_register_apps/mod_register_apps.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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