Update Addon functions and calls

Update function names and calls for Addon class.
This commit is contained in:
Adam Magness 2018-01-17 13:42:40 -05:00
parent 213f6ae1a1
commit 11cf36105c
73 changed files with 544 additions and 464 deletions

View file

@ -6,6 +6,7 @@ namespace Friendica\Content;
use Friendica\Content\ContactSelector;
use Friendica\Content\Feature;
use Friendica\Core\Addon;
use Friendica\Core\Config;
use Friendica\Core\PConfig;
use Friendica\Core\System;
@ -74,23 +75,23 @@ class Widget
{
$networks = array();
if (!plugin_enabled("appnet")) {
if (!Addon::isEnabled("appnet")) {
$networks[] = NETWORK_APPNET;
}
if (!plugin_enabled("fbpost") && !plugin_enabled("facebook")) {
if (!Addon::isEnabled("fbpost") && !Addon::isEnabled("facebook")) {
$networks[] = NETWORK_FACEBOOK;
}
if (!plugin_enabled("statusnet")) {
if (!Addon::isEnabled("statusnet")) {
$networks[] = NETWORK_STATUSNET;
}
if (!plugin_enabled("pumpio")) {
if (!Addon::isEnabled("pumpio")) {
$networks[] = NETWORK_PUMPIO;
}
if (!plugin_enabled("twitter")) {
if (!Addon::isEnabled("twitter")) {
$networks[] = NETWORK_TWITTER;
}
@ -102,7 +103,7 @@ class Widget
$networks[] = NETWORK_DIASPORA;
}
if (!plugin_enabled("pnut")) {
if (!Addon::isEnabled("pnut")) {
$networks[] = NETWORK_PNUT;
}