<?php
-
-use Friendica\App;
+/**
+ * @file include/contact_widgets.php
+ */
+use Friendica\Content\Feature;
use Friendica\Core\System;
use Friendica\Core\Config;
use Friendica\Core\PConfig;
use Friendica\Database\DBM;
-use Friendica\Model\GlobalContact;
+use Friendica\Model\GContact;
require_once 'include/contact_selectors.php';
}
function findpeople_widget() {
- require_once 'include/Contact.php';
-
$a = get_app();
$global_dir = Config::get('system', 'directory');
return '';
}
- if (!feature_enabled(local_user(), 'networks')) {
+ if (!Feature::isEnabled(local_user(), 'networks')) {
return '';
}
return '';
}
- if (! feature_enabled(local_user(), 'filing')) {
+ if (! Feature::isEnabled(local_user(), 'filing')) {
return '';
}
$a = get_app();
- if (! feature_enabled($a->profile['profile_uid'], 'categories')) {
+ if (! Feature::isEnabled($a->profile['profile_uid'], 'categories')) {
return '';
}
}
if ($cid) {
- $t = GlobalContact::countCommonFriends($profile_uid, $cid);
+ $t = GContact::countCommonFriends($profile_uid, $cid);
} else {
- $t = GlobalContact::countCommonFriendsZcid($profile_uid, $zcid);
+ $t = GContact::countCommonFriendsZcid($profile_uid, $zcid);
}
if (! $t) {
return;
}
if ($cid) {
- $r = GlobalContact::commonFriends($profile_uid, $cid, 0, 5, true);
+ $r = GContact::commonFriends($profile_uid, $cid, 0, 5, true);
} else {
- $r = GlobalContact::commonFriendsZcid($profile_uid, $zcid, 0, 5, true);
+ $r = GContact::commonFriendsZcid($profile_uid, $zcid, 0, 5, true);
}
return replace_macros(get_markup_template('remote_friends_common.tpl'), array(