remove leftover rating fragment

This commit is contained in:
redmatrix 2016-10-04 15:33:14 -07:00
parent c089d30915
commit 246b2c0d1b

View File

@ -238,7 +238,9 @@ class Directory extends \Zotlabs\Web\Controller {
$page_type = '';
if($rr['total_ratings'] && get_config('system','rating_enabled'))
$rating_enabled = get_config('system','rating_enabled');
if($rr['total_ratings'] && $rating_enabled)
$total_ratings = sprintf( tt("%d rating", "%d ratings", $rr['total_ratings']), $rr['total_ratings']);
else
$total_ratings = '';
@ -263,6 +265,7 @@ class Directory extends \Zotlabs\Web\Controller {
$keywords = ((x($profile,'keywords')) ? $profile['keywords'] : '');
$out = '';
if($keywords) {
@ -311,7 +314,7 @@ class Directory extends \Zotlabs\Web\Controller {
'gender' => $gender,
'total_ratings' => $total_ratings,
'viewrate' => true,
'canrate' => ((local_channel()) ? true : false),
'canrate' => (($rating_enabled && local_channel()) ? true : false),
'pdesc' => $pdesc,
'pdesc_label' => t('Description:'),
'marital' => $marital,