diff options
author | redmatrix <mike@macgirvin.com> | 2016-10-04 15:33:14 -0700 |
---|---|---|
committer | redmatrix <mike@macgirvin.com> | 2016-10-04 15:33:14 -0700 |
commit | de1825e54b44210b421efde609f4874277f7aeab (patch) | |
tree | 02cee0d91ee00744458260a4467552a02d84a420 /Zotlabs/Module/Directory.php | |
parent | 4e07b4c0e8d5eefd934f559b33e10526519ec6e9 (diff) | |
download | volse-hubzilla-de1825e54b44210b421efde609f4874277f7aeab.tar.gz volse-hubzilla-de1825e54b44210b421efde609f4874277f7aeab.tar.bz2 volse-hubzilla-de1825e54b44210b421efde609f4874277f7aeab.zip |
remove leftover rating fragment
Diffstat (limited to 'Zotlabs/Module/Directory.php')
-rw-r--r-- | Zotlabs/Module/Directory.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Zotlabs/Module/Directory.php b/Zotlabs/Module/Directory.php index 691e48520..ff96e1029 100644 --- a/Zotlabs/Module/Directory.php +++ b/Zotlabs/Module/Directory.php @@ -239,7 +239,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 = ''; @@ -264,6 +266,7 @@ class Directory extends \Zotlabs\Web\Controller { $keywords = ((x($profile,'keywords')) ? $profile['keywords'] : ''); + $out = ''; if($keywords) { @@ -312,7 +315,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, |