mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Replace Addon class with AddonHelper
This commit is contained in:
parent
45d3a6fb74
commit
48ff761bdb
2 changed files with 6 additions and 4 deletions
|
@ -8,7 +8,6 @@
|
|||
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Content\Text\HTML;
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\Protocol;
|
||||
use Friendica\Core\Renderer;
|
||||
|
@ -627,7 +626,9 @@ function pumpio_action(int $uid, string $uri, string $action, string $content =
|
|||
|
||||
function pumpio_sync()
|
||||
{
|
||||
if (!Addon::isEnabled('pumpio')) {
|
||||
$addonHelper = DI::addonHelper();
|
||||
|
||||
if (!$addonHelper->isAddonEnabled('pumpio')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue