From eed83061e661199e84a0dfc52fa3d0d86b402e43 Mon Sep 17 00:00:00 2001 From: whitej46 <168861166+whitej46@users.noreply.github.com> Date: Wed, 29 May 2024 09:06:09 -0400 Subject: [PATCH] Add nfsen_base to config_definitions.json (#16065) * Update config_definitions.json Added nfsen_base so that nfsen stats feature works. I had to add as an array as it was the way I was able to make it work, even though another type may make more sense from a user interface perspective. I put it in order 10 as there seemed to be a gap there, but one could argue that it should be higher and other nfsen items renumbered. * Update config_definitions.json Fixed typo * Update config_definitions.json * Update settings.php Added Default NFSen Base Directory * Update settings.php --------- Co-authored-by: Tony Murray --- lang/en/settings.php | 4 ++++ misc/config_definitions.json | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/lang/en/settings.php b/lang/en/settings.php index 54f8be4439..2ec85395b2 100644 --- a/lang/en/settings.php +++ b/lang/en/settings.php @@ -1038,6 +1038,10 @@ return [ 'nfsen_lasts' => [ 'description' => 'Default Last Options', ], + 'nfsen_base' => [ + 'description' => 'NFSen Base Directory', + 'help' => 'Used to locate device specific graphs', + ], 'nfsen_split_char' => [ 'description' => 'Split Char', 'help' => 'This value tells us what to replace the full stops `.` in the devices hostname with. Usually: `_`', diff --git a/misc/config_definitions.json b/misc/config_definitions.json index d488177dbe..41745c1bdc 100644 --- a/misc/config_definitions.json +++ b/misc/config_definitions.json @@ -4547,6 +4547,13 @@ }, "type": "array" }, + "nfsen_base": { + "default": [], + "group": "external", + "section": "nfsen", + "order": 10, + "type": "array" + }, "nfsen_split_char": { "group": "external", "section": "nfsen",