From f93915075e7bbd30cb2b88773fc0ed19f84394aa Mon Sep 17 00:00:00 2001 From: Art4 Date: Sat, 23 Nov 2024 08:38:37 +0000 Subject: [PATCH] remove requirement for DI::app() in addon_install() see https://github.com/friendica/friendica-addons/pull/1364 --- src/Core/Addon.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Core/Addon.php b/src/Core/Addon.php index e202d130ec..8ed5cc8512 100644 --- a/src/Core/Addon.php +++ b/src/Core/Addon.php @@ -155,7 +155,12 @@ class Addon @include_once($addon_file_path); if (function_exists($addon . '_install')) { $func = $addon . '_install'; - $func(DI::app()); + + // Addon webdav_storage has an unused but required parameter. + // @TODO: Remove $param after the required parameter is removed. + // See https://github.com/friendica/friendica-addons/pull/1364 + $param = null; + $func($param); } DI::config()->set('addons', $addon, [