diff options
author | friendica <info@friendica.com> | 2015-01-29 00:28:23 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-01-29 00:28:23 -0800 |
commit | fd0b6c967fce4d8a82e9dad121ae7d8301d3f342 (patch) | |
tree | 5c37812ef7baeadc17fce088c4394d25f75b593c /include/contact_widgets.php | |
parent | c993ddd86ee25832e35e65333fa25b396e7aefdf (diff) | |
parent | 872b165eb2bb5d632a12f2d7e1a28e195c2d5348 (diff) | |
download | volse-hubzilla-fd0b6c967fce4d8a82e9dad121ae7d8301d3f342.tar.gz volse-hubzilla-fd0b6c967fce4d8a82e9dad121ae7d8301d3f342.tar.bz2 volse-hubzilla-fd0b6c967fce4d8a82e9dad121ae7d8301d3f342.zip |
Merge branch 'master' into pocorate
Diffstat (limited to 'include/contact_widgets.php')
-rw-r--r-- | include/contact_widgets.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/contact_widgets.php b/include/contact_widgets.php index ee9394e95..a02fea523 100644 --- a/include/contact_widgets.php +++ b/include/contact_widgets.php @@ -8,7 +8,7 @@ function findpeople_widget() { $a = get_app(); if(get_config('system','invitation_only')) { - $x = get_pconfig(local_user(),'system','invites_remaining'); + $x = get_pconfig(local_channel(),'system','invites_remaining'); if($x || is_site_admin()) { $a->page['aside'] .= '<div class="side-link" id="side-invite-remain">' . sprintf( tt('%d invitation available','%d invitations available',$x), $x) @@ -16,7 +16,7 @@ function findpeople_widget() { } } - $advanced_search = ((local_user() && get_pconfig(local_user(),'feature','expert')) ? t('Advanced') : false); + $advanced_search = ((local_channel() && get_pconfig(local_channel(),'feature','expert')) ? t('Advanced') : false); return replace_macros(get_markup_template('peoplefind.tpl'),array( '$findpeople' => t('Find Channels'), @@ -30,7 +30,7 @@ function findpeople_widget() { '$inv' => t('Invite Friends'), '$advanced_search' => $advanced_search, '$advanced_hint' => "\r\n" . t('Advanced example: name=fred and country=iceland'), - '$loggedin' => local_user() + '$loggedin' => local_channel() )); } @@ -39,12 +39,12 @@ function findpeople_widget() { function fileas_widget($baseurl,$selected = '') { $a = get_app(); - if(! local_user()) + if(! local_channel()) return ''; $terms = array(); $r = q("select distinct(term) from term where uid = %d and type = %d order by term asc", - intval(local_user()), + intval(local_channel()), intval(TERM_FILE) ); if(! $r) @@ -105,7 +105,7 @@ function common_friends_visitor_widget($profile_uid) { $a = get_app(); - if(local_user() == $profile_uid) + if(local_channel() == $profile_uid) return; $observer_hash = get_observer_hash(); |