X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fdirectory.php;h=06aeec622fffb5d0af21d163b12edeb8f6c6bae3;hb=46ba1a46f5b7b84f6e94fdbdbe87c4f1f320c90f;hp=9050a050a60e7211d24544477ad91af7d630b3c6;hpb=1dd77ee443f700c4f48e8b655ceef968b8fbb753;p=friendica.git diff --git a/mod/directory.php b/mod/directory.php index 9050a050a6..06aeec622f 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -99,7 +99,6 @@ function directory_content(&$a) { foreach($r as $rr) { - $community = ''; $itemurl= ''; $itemurl = (($rr['addr'] != "") ? $rr['addr'] : $rr['profile_url']); @@ -128,13 +127,6 @@ function directory_content(&$a) { // if(strlen($rr['gender'])) // $details .= '
' . t('Gender: ') . $rr['gender']; - - // show if account is a community account - /// @TODO The other page types should be also respected, but first we need a good - /// translatiion and systemwide consistency for displaying the page type - if((intval($rr['page-flags']) == PAGE_COMMUNITY) OR (intval($rr['page-flags']) == PAGE_PRVGROUP)) - $community = true; - $profile = $rr; if((x($profile,'address') == 1) @@ -171,7 +163,7 @@ function directory_content(&$a) { 'img_hover' => $rr['name'], 'name' => $rr['name'], 'details' => $details, - 'account_type' => ($community ? t('Forum') : ''), + 'account_type' => account_type($rr), 'profile' => $profile, 'location' => $location_e, 'tags' => $rr['pub_keywords'], @@ -206,7 +198,7 @@ function directory_content(&$a) { '$gdirpath' => $gdirpath, '$desc' => t('Find on this site'), '$contacts' => $entries, - '$finding' => t('Finding:'), + '$finding' => t('Results for:'), '$findterm' => (strlen($search) ? $search : ""), '$title' => t('Site Directory'), '$submit' => t('Find'),