Add missing App parameter in addon (un)install calls
Follow-up to #6581 Fixes https://github.com/friendica/friendica/issues/6386#issuecomment-461080531
This commit is contained in:
parent
741701d26f
commit
e6a7c52f7d
1 changed files with 3 additions and 3 deletions
|
@ -112,7 +112,7 @@ class Addon extends BaseObject
|
|||
@include_once('addon/' . $addon . '/' . $addon . '.php');
|
||||
if (function_exists($addon . '_install')) {
|
||||
$func = $addon . '_install';
|
||||
$func();
|
||||
$func(self::getApp());
|
||||
|
||||
$addon_admin = (function_exists($addon . "_addon_admin") ? 1 : 0);
|
||||
|
||||
|
@ -168,11 +168,11 @@ class Addon extends BaseObject
|
|||
|
||||
if (function_exists($addon . '_uninstall')) {
|
||||
$func = $addon . '_uninstall';
|
||||
$func();
|
||||
$func(self::getApp());
|
||||
}
|
||||
if (function_exists($addon . '_install')) {
|
||||
$func = $addon . '_install';
|
||||
$func();
|
||||
$func(self::getApp());
|
||||
}
|
||||
DBA::update('addon', ['timestamp' => $t], ['id' => $i['id']]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue