X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fcontact_widgets.php;h=bbbd941b5609df3ae7321bc708599e17c6de4ccc;hb=6da01c1a3db29960f7c81582cb52e4254981e9cb;hp=a7c82c33cf04c7a2c285b57837bc21ba680f1792;hpb=8b23e771714c1a2687460120bf6006430458c1f8;p=friendica.git
diff --git a/include/contact_widgets.php b/include/contact_widgets.php
index a7c82c33cf..bbbd941b56 100644
--- a/include/contact_widgets.php
+++ b/include/contact_widgets.php
@@ -20,12 +20,12 @@ function findpeople_widget() {
if(get_config('system','invitation_only')) {
$x = get_pconfig(local_user(),'system','invites_remaining');
if($x || is_site_admin()) {
- $a->page['aside'] .= '
'
- . sprintf( tt('%d invitation available','%d invitations available',$x), $x)
+ $a->page['aside'] .= '
'
+ . sprintf( tt('%d invitation available','%d invitations available',$x), $x)
. '
' . $inv;
}
}
-
+
return replace_macros(get_markup_template('peoplefind.tpl'),array(
'$findpeople' => t('Find People'),
'$desc' => t('Enter name or interest'),
@@ -48,7 +48,7 @@ function unavailable_networks() {
if (!plugin_enabled("appnet"))
$networks[] = NETWORK_APPNET;
- if (!plugin_enabled("fbpost"))
+ if (!plugin_enabled("fbpost") AND !plugin_enabled("facebook"))
$networks[] = NETWORK_FACEBOOK;
if (!plugin_enabled("statusnet"))
@@ -217,7 +217,7 @@ function common_friends_visitor_widget($profile_uid) {
}
if($cid == 0 && $zcid == 0)
- return;
+ return;
require_once('include/socgraph.php');
@@ -241,6 +241,6 @@ function common_friends_visitor_widget($profile_uid) {
'$linkmore' => (($t > 5) ? 'true' : ''),
'$more' => t('show more'),
'$items' => $r
- ));
+ ));
};