honour poco_rating_enable in item_photo_menu

This commit is contained in:
redmatrix 2016-01-19 15:30:17 -08:00
parent c15e3de637
commit d3bec0b2f9

View File

@ -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,