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:
Hypolite Petovan 2019-02-06 22:28:17 -05:00 committed by GitHub
parent 741701d26f
commit e6a7c52f7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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']]);
}