From a6c2b9254b44a11bc3385928ccecf28e8b98927b Mon Sep 17 00:00:00 2001 From: Jokob-sk Date: Sun, 2 Apr 2023 09:50:50 +1000 Subject: [PATCH] Fix ENABLE_PLUGINS bug discovered in #203 --- back/pialert.py | 3 ++- front/plugins.php | 4 +--- front/plugins/unifi_import/README.md | 5 +++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/back/pialert.py b/back/pialert.py index 5fc28598..80d9f598 100755 --- a/back/pialert.py +++ b/back/pialert.py @@ -3299,7 +3299,8 @@ def update_api(isNotification = False, updateOnlyDataSources = []): write_file(folder + 'notification_json_final.json' , json.dumps(json_final)) # Save plugins - write_file(folder + 'plugins.json' , json.dumps({"data" : plugins})) + if ENABLE_PLUGINS: + write_file(folder + 'plugins.json' , json.dumps({"data" : plugins})) # prepare database tables we want to expose dataSourcesSQLs = [ diff --git a/front/plugins.php b/front/plugins.php index 22aa89b5..e7b2e51b 100755 --- a/front/plugins.php +++ b/front/plugins.php @@ -129,9 +129,7 @@ function localize (obj, key) { { for(i=0;i