aboutsummaryrefslogtreecommitdiffstats
path: root/include/identity.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-01-18 14:42:22 -0800
committerredmatrix <git@macgirvin.com>2016-01-18 14:42:22 -0800
commit1ca47074bc2f22397a3b39698322937911f1f228 (patch)
tree3aa81aacb7b465492ef4a745736b9758d07b3801 /include/identity.php
parentb380b618bc3bb64a76eb170755a7e53c0dde3c43 (diff)
parenta036d88a4e6e6a83f9962f0f46094cfdac99d263 (diff)
downloadvolse-hubzilla-1ca47074bc2f22397a3b39698322937911f1f228.tar.gz
volse-hubzilla-1ca47074bc2f22397a3b39698322937911f1f228.tar.bz2
volse-hubzilla-1ca47074bc2f22397a3b39698322937911f1f228.zip
Merge https://github.com/redmatrix/hubzilla into pending_merge
Diffstat (limited to 'include/identity.php')
-rw-r--r--include/identity.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/identity.php b/include/identity.php
index 2a02d4093..32c4dd130 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -1051,8 +1051,10 @@ function profile_sidebar($profile, $block = 0, $show_connect = true) {
$tpl = get_markup_template('profile_vcard.tpl');
require_once('include/widgets.php');
- $z = widget_rating(array('target' => $profile['channel_hash']));
+ if(! feature_enabled($profile['uid'],'hide_rating'))
+ $z = widget_rating(array('target' => $profile['channel_hash']));
+
$o .= replace_macros($tpl, array(
'$profile' => $profile,
'$connect' => $connect,
@@ -1773,4 +1775,4 @@ function get_cover_photo($channel_id,$format = 'bbcode', $res = PHOTO_RES_COVER_
return $output;
-} \ No newline at end of file
+}