diff options
author | friendica <info@friendica.com> | 2012-03-20 16:05:32 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-03-20 16:05:32 -0700 |
commit | ef33cfcc9a30b7e457c94d772a520162cd6b7a35 (patch) | |
tree | e680fa5fe39744ceca09c2aeb2c774975919931a /mod | |
parent | def0e35e21106119910391f1a5cba61b8e7bce65 (diff) | |
download | volse-hubzilla-ef33cfcc9a30b7e457c94d772a520162cd6b7a35.tar.gz volse-hubzilla-ef33cfcc9a30b7e457c94d772a520162cd6b7a35.tar.bz2 volse-hubzilla-ef33cfcc9a30b7e457c94d772a520162cd6b7a35.zip |
move friend suggestions to top of contact page, add default contact profile photos if missing
Diffstat (limited to 'mod')
-rwxr-xr-x | mod/contacts.php | 5 | ||||
-rwxr-xr-x | mod/photo.php | 20 |
2 files changed, 23 insertions, 2 deletions
diff --git a/mod/contacts.php b/mod/contacts.php index 78c8d4092..8aa51d00a 100755 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -396,6 +396,11 @@ function contacts_content(&$a) { $tabs = array( array( + 'label' => t('Suggestions'), + 'url' => $a->get_baseurl(true) . '/suggest', + 'sel' => '', + ), + array( 'label' => t('All Contacts'), 'url' => $a->get_baseurl(true) . '/contacts/all', 'sel' => ($all) ? 'active' : '', diff --git a/mod/photo.php b/mod/photo.php index 4afdd366a..3a7025120 100755 --- a/mod/photo.php +++ b/mod/photo.php @@ -115,8 +115,24 @@ function photo_init(&$a) { } if(! isset($data)) { - killme(); - // NOTREACHED + if(isset($resolution)) { + switch($resolution) { + + case 4: + $data = file_get_contents('images/person-175.jpg'); + break; + case 5: + $data = file_get_contents('images/person-80.jpg'); + break; + case 6: + $data = file_get_contents('images/person-48.jpg'); + break; + default: + killme(); + // NOTREACHED + break; + } + } } if(isset($customres) && $customres > 0 && $customres < 500) { |