From d3bec0b2f9426492bf63e87e49e6793a7cb700da Mon Sep 17 00:00:00 2001 From: redmatrix Date: Tue, 19 Jan 2016 15:30:17 -0800 Subject: honour poco_rating_enable in item_photo_menu --- include/conversation.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/conversation.php b/include/conversation.php index 7070ac221..1ade8ed3a 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -942,7 +942,12 @@ function item_photo_menu($item){ $clean_url = normalise_link($item['author-link']); } - $ratings_url = z_root() . '/ratings/' . urlencode($item['author_xchan']); + $poco_rating = get_config('system','poco_rating_enable'); + // if unset default to enabled + if($poco_rating === false) + $poco_rating = true; + + $ratings_url = (($poco_rating) ? z_root() . '/ratings/' . urlencode($item['author_xchan']) : ''); $post_menu = Array( t("View Source") => $vsrc_link, -- cgit v1.2.3