X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContent%2FWidget.php;h=156e9e3593b29ee849d9812265ceeac6f87aa13e;hb=a5952e5425ee623253b2c91daa873ff6cc63bd39;hp=3c8131f45cad614c528f979b2467cbcd0e0ed672;hpb=90545d0c665a5918c76682fe05934650be8631b3;p=friendica.git diff --git a/src/Content/Widget.php b/src/Content/Widget.php index 3c8131f45c..156e9e3593 100644 --- a/src/Content/Widget.php +++ b/src/Content/Widget.php @@ -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; }