aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-10-04 15:33:14 -0700
committerredmatrix <mike@macgirvin.com>2016-10-04 19:47:46 -0700
commit246b2c0d1b14ce31a695d6d83b177507fb46ed27 (patch)
treeaac89b4d95bd604b14b164333ba73d864eea656a
parentc089d30915277af5ed084117ab08b388fa5c5275 (diff)
downloadvolse-hubzilla-246b2c0d1b14ce31a695d6d83b177507fb46ed27.tar.gz
volse-hubzilla-246b2c0d1b14ce31a695d6d83b177507fb46ed27.tar.bz2
volse-hubzilla-246b2c0d1b14ce31a695d6d83b177507fb46ed27.zip
remove leftover rating fragment
-rw-r--r--Zotlabs/Module/Directory.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/Zotlabs/Module/Directory.php b/Zotlabs/Module/Directory.php
index 4ee49cb64..e1068223b 100644
--- a/Zotlabs/Module/Directory.php
+++ b/Zotlabs/Module/Directory.php
@@ -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,