mirror of
https://github.com/friendica/friendica
synced 2024-12-22 13:20:15 +00:00
remove requirement for DI::app() in addon_install()
see https://github.com/friendica/friendica-addons/pull/1364
This commit is contained in:
parent
5f829ac1cd
commit
f93915075e
1 changed files with 6 additions and 1 deletions
|
@ -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, [
|
||||
|
|
Loading…
Reference in a new issue