honour the rating enable setting (which we really do need to rename since it isn't poco any more)
This commit is contained in:
parent
561bab4ece
commit
24b198a50c
@ -908,6 +908,11 @@ function widget_random_block($arr) {
|
|||||||
function widget_rating($arr) {
|
function widget_rating($arr) {
|
||||||
$a = get_app();
|
$a = get_app();
|
||||||
|
|
||||||
|
$poco_rating = get_config('system','poco_rating_enable');
|
||||||
|
if((! $poco_rating) && ($poco_rating !== false)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if($arr['target'])
|
if($arr['target'])
|
||||||
$hash = $arr['target'];
|
$hash = $arr['target'];
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user