aboutsummaryrefslogtreecommitdiffstats
path: root/include/widgets.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-04 17:34:53 -0800
committerfriendica <info@friendica.com>2015-02-04 17:34:53 -0800
commit24b198a50c54736ad137a342c30814033b27eff7 (patch)
tree7c298d63d557728c87695adbb0bd289084c77bd0 /include/widgets.php
parent561bab4ece9fa5844a0cb00f3cbd75e0855b2796 (diff)
downloadvolse-hubzilla-24b198a50c54736ad137a342c30814033b27eff7.tar.gz
volse-hubzilla-24b198a50c54736ad137a342c30814033b27eff7.tar.bz2
volse-hubzilla-24b198a50c54736ad137a342c30814033b27eff7.zip
honour the rating enable setting (which we really do need to rename since it isn't poco any more)
Diffstat (limited to 'include/widgets.php')
-rw-r--r--include/widgets.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/widgets.php b/include/widgets.php
index 7d2aaeb99..5eda9008b 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -908,6 +908,11 @@ function widget_random_block($arr) {
function widget_rating($arr) {
$a = get_app();
+ $poco_rating = get_config('system','poco_rating_enable');
+ if((! $poco_rating) && ($poco_rating !== false)) {
+ return;
+ }
+
if($arr['target'])
$hash = $arr['target'];
else