diff options
author | RedMatrix <info@friendica.com> | 2014-04-20 12:01:00 +1000 |
---|---|---|
committer | RedMatrix <info@friendica.com> | 2014-04-20 12:01:00 +1000 |
commit | 170b5d95e0ac3dd42a5613777af80def35ed41b6 (patch) | |
tree | ecbee03c46734f01e67f2f60a6d6f373e5ee58d7 /mod/profperm.php | |
parent | 4b17f74300114f31ce6d1993c93d0c5f5563dc4a (diff) | |
parent | c946d926103a3bce94dcf99a137f3329ce011e2a (diff) | |
download | volse-hubzilla-170b5d95e0ac3dd42a5613777af80def35ed41b6.tar.gz volse-hubzilla-170b5d95e0ac3dd42a5613777af80def35ed41b6.tar.bz2 volse-hubzilla-170b5d95e0ac3dd42a5613777af80def35ed41b6.zip |
Merge pull request #418 from jmankiewicz/mod-profpicperm
Patch for Issue #410
Diffstat (limited to 'mod/profperm.php')
-rw-r--r-- | mod/profperm.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/mod/profperm.php b/mod/profperm.php index 915f2a994..197062936 100644 --- a/mod/profperm.php +++ b/mod/profperm.php @@ -10,7 +10,7 @@ function profperm_init(&$a) { $channel = $a->get_channel(); $which = $channel['channel_address']; - $profile = $a->argv[1]; + $profile = $a->argv[1]; profile_load($a,$which,$profile); @@ -89,6 +89,11 @@ function profperm_content(&$a) { } + + //Time to update the permissions on the profile-pictures as well + require_once('mod/profile_photo.php'); + profile_photo_set_profile_perms($profile['id']); + $r = q("SELECT * FROM abook left join xchan on abook_xchan = xchan_hash WHERE abook_channel = %d AND abook_profile = '%s'", intval(local_user()), dbesc($profile['profile_guid']) @@ -111,9 +116,9 @@ function profperm_content(&$a) { } $o .= '<div id="prof-update-wrapper">'; - if($change) + if($change) $o = ''; - + $o .= '<div id="prof-members-title">'; $o .= '<h3>' . t('Visible To') . '</h3>'; $o .= '</div>'; @@ -134,7 +139,7 @@ function profperm_content(&$a) { $o .= '<h3>' . t("All Connections") . '</h3>'; $o .= '</div>'; $o .= '<div id="prof-all-contacts">'; - + $r = abook_connections(local_user()); if($r) { |