honour poco_rating_enable in item_photo_menu
This commit is contained in:
parent
c15e3de637
commit
d3bec0b2f9
@ -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,
|
||||
|
Reference in New Issue
Block a user