X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContent%2FWidget.php;h=35e8913e0869866dcf9c33778b46c5d2d6d8cb8b;hb=795268eb7ad3f10b08721f5d006f22a91bb5c9b6;hp=d4d4ff54949ae974ffad4c05b33f9f60fd88eea8;hpb=43079bfaf83b6751f161d8467a433f73ecaa62bf;p=friendica.git diff --git a/src/Content/Widget.php b/src/Content/Widget.php index d4d4ff5494..35e8913e08 100644 --- a/src/Content/Widget.php +++ b/src/Content/Widget.php @@ -21,9 +21,6 @@ use Friendica\Model\Profile; use Friendica\Util\Strings; use Friendica\Util\XML; -require_once 'boot.php'; -require_once 'include/dba.php'; - class Widget { /** @@ -47,7 +44,7 @@ class Widget */ public static function findPeople() { - $a = get_app(); + $a = \get_app(); $global_dir = Config::get('system', 'directory'); if (Config::get('system', 'invitation_only')) { @@ -140,7 +137,7 @@ class Widget $extra_sql = self::unavailableNetworks(); - $r = DBA::p("SELECT DISTINCT(`network`) FROM `contact` WHERE `uid` = ? AND `network` != '' $extra_sql ORDER BY `network`", + $r = DBA::p("SELECT DISTINCT(`network`) FROM `contact` WHERE `uid` = ? AND NOT `deleted` AND `network` != '' $extra_sql ORDER BY `network`", local_user() ); @@ -210,7 +207,7 @@ class Widget */ public static function categories($baseurl, $selected = '') { - $a = get_app(); + $a = \get_app(); if (!Feature::isEnabled($a->profile['profile_uid'], 'categories')) { return ''; @@ -319,7 +316,7 @@ class Widget */ public static function tagCloud($limit = 50) { - $a = get_app(); + $a = \get_app(); if (!$a->profile['profile_uid'] || !$a->profile['url']) { return '';