Fixes exceptions upon plugins reload

Fixes #4633
This commit is contained in:
Simone Mainardi 2020-10-27 17:35:14 +01:00
parent b057748618
commit 357f11900f
4 changed files with 52 additions and 8 deletions

View file

@ -23,8 +23,6 @@ local edition = _GET["edition"] or ""
-- #######################################################
if(isAdministrator() and (_POST["action"] == "reload")) then
local plugins_utils = require("plugins_utils")
plugins_utils.loadPlugins()
user_scripts.loadDefaultConfig()
end