aboutsummaryrefslogtreecommitdiffstats
path: root/include/contact_widgets.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-07 15:12:16 -0800
committerfriendica <info@friendica.com>2013-01-07 15:12:16 -0800
commitda188214c304cefaa6fe0a36e1f60932da2f3bfb (patch)
tree9d4cf84f1fad3af4f7da3adeaf9ede4d04885bf2 /include/contact_widgets.php
parent31ce6a3876fc0a3c37be1474a627ec0cea0e3622 (diff)
downloadvolse-hubzilla-da188214c304cefaa6fe0a36e1f60932da2f3bfb.tar.gz
volse-hubzilla-da188214c304cefaa6fe0a36e1f60932da2f3bfb.tar.bz2
volse-hubzilla-da188214c304cefaa6fe0a36e1f60932da2f3bfb.zip
events are still buggered and aren't anywhere close to working, but not buggered quite as much as before.
Diffstat (limited to 'include/contact_widgets.php')
-rw-r--r--include/contact_widgets.php36
1 files changed, 1 insertions, 35 deletions
diff --git a/include/contact_widgets.php b/include/contact_widgets.php
index e0c9ca0e8..47945e66e 100644
--- a/include/contact_widgets.php
+++ b/include/contact_widgets.php
@@ -40,41 +40,6 @@ function findpeople_widget() {
}
-function networks_widget($baseurl,$selected = '') {
-
- $a = get_app();
-
- if(! local_user())
- return '';
-
-
- $r = q("select distinct(network) from contact where uid = %d and self = 0",
- intval(local_user())
- );
-
- $nets = array();
- if(count($r)) {
- require_once('include/contact_selectors.php');
- foreach($r as $rr) {
- if($rr['network'])
- $nets[] = array('ref' => $rr['network'], 'name' => network_to_name($rr['network']), 'selected' => (($selected == $rr['network']) ? 'selected' : '' ));
- }
- }
-
- if(count($nets) < 2)
- return '';
-
- return replace_macros(get_markup_template('nets.tpl'),array(
- '$title' => t('Networks'),
- '$desc' => '',
- '$sel_all' => (($selected == '') ? 'selected' : ''),
- '$all' => t('All Networks'),
- '$nets' => $nets,
- '$base' => $baseurl,
-
- ));
-}
-
function fileas_widget($baseurl,$selected = '') {
$a = get_app();
@@ -150,6 +115,7 @@ function common_friends_visitor_widget($profile_uid) {
}
}
+// FIXME
if(! $cid) {
if(get_my_url()) {
$r = q("select id from contact where nurl = '%s' and uid = %d limit 1",