From 0a019b212c03c90b67a91231b987a62737619b05 Mon Sep 17 00:00:00 2001 From: KodeStar Date: Wed, 12 Aug 2026 17:44:34 +0100 Subject: [PATCH] openmediavault: define getConfigValue helper The ignore_tls change called getConfigValue assuming it exists on the base SupportedApps class, but each app defines its own copy (the base class only has static configValue). Without this every RPC request fatals with an undefined-method error. Same helper as Proxmox/Portainer. --- openmediavault/openmediavault.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/openmediavault/openmediavault.php b/openmediavault/openmediavault.php index d7b41959bc..eea08dace7 100644 --- a/openmediavault/openmediavault.php +++ b/openmediavault/openmediavault.php @@ -16,6 +16,13 @@ public function __construct() $this->cookie = new \GuzzleHttp\Cookie\CookieJar(); } + public function getConfigValue($key, $default = null) + { + return isset($this->config) && isset($this->config->$key) + ? $this->config->$key + : $default; + } + public function url($endpoint) { $api_url = parent::normaliseurl($this->config->url) . "rpc.php";