aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-15 17:50:24 -0800
committerfriendica <info@friendica.com>2015-01-15 17:50:24 -0800
commit9c158448455caf38a401531c80432351456b67bb (patch)
tree0fe49ad20aa03432890cc02b88f43c2044682938 /mod
parent6cd26c359054e188d41a97d3d97e3c659f2dede9 (diff)
downloadvolse-hubzilla-9c158448455caf38a401531c80432351456b67bb.tar.gz
volse-hubzilla-9c158448455caf38a401531c80432351456b67bb.tar.bz2
volse-hubzilla-9c158448455caf38a401531c80432351456b67bb.zip
make sure mod/prep follows the poco_rating allow preference
Diffstat (limited to 'mod')
-rw-r--r--mod/prep.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/mod/prep.php b/mod/prep.php
index e53f7ac4e..7cff34bfc 100644
--- a/mod/prep.php
+++ b/mod/prep.php
@@ -2,6 +2,15 @@
function prep_content(&$a) {
+
+ $poco_rating = get_config('system','poco_rating_enable');
+ // if unset default to enabled
+ if($poco_rating === false)
+ $poco_rating = true;
+
+ if(! $poco_rating)
+ return;
+
if(argc() > 1)
$hash = argv(1);