diff options
author | friendica <info@friendica.com> | 2012-11-03 23:39:38 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-11-03 23:39:38 -0700 |
commit | aaa5a2638c9cf773163eb60fbffae597d77afc22 (patch) | |
tree | d9e3035326af7028a17fd4b5fac423840a448405 /include/ItemObject.php | |
parent | d72bad4efa1fdf4b02c65d22c141e3cac338653a (diff) | |
download | volse-hubzilla-aaa5a2638c9cf773163eb60fbffae597d77afc22.tar.gz volse-hubzilla-aaa5a2638c9cf773163eb60fbffae597d77afc22.tar.bz2 volse-hubzilla-aaa5a2638c9cf773163eb60fbffae597d77afc22.zip |
feature enable 'dislike' - backend
Diffstat (limited to 'include/ItemObject.php')
-rw-r--r-- | include/ItemObject.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/ItemObject.php b/include/ItemObject.php index 8a7bdea3a..bb507fe00 100644 --- a/include/ItemObject.php +++ b/include/ItemObject.php @@ -159,7 +159,7 @@ class Item extends BaseObject { } $like = ((x($alike,$item['uri'])) ? format_like($alike[$item['uri']],$alike[$item['uri'] . '-l'],'like',$item['uri']) : ''); - $dislike = ((x($dlike,$item['uri'])) ? format_like($dlike[$item['uri']],$dlike[$item['uri'] . '-l'],'dislike',$item['uri']) : ''); + $dislike = ((x($dlike,$item['uri']) && feature_enabled($conv->get_profile_owner(),'dislike')) ? format_like($dlike[$item['uri']],$dlike[$item['uri'] . '-l'],'dislike',$item['uri']) : ''); /* * We should avoid doing this all the time, but it depends on the conversation mode @@ -242,6 +242,8 @@ class Item extends BaseObject { 'vote' => $buttons, 'like' => $like, 'dislike' => $dislike, + 'nolike' => ((feature_enabled($conv->get_profile_owner(),'dislike')) ? '1' : ''), + 'comment' => $this->get_comment_box($indent), 'previewing' => ($conv->is_preview() ? ' preview ' : ''), 'wait' => t('Please wait'), |