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