aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Ratings.php
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-08-27 06:52:01 -0400
committerAndrew Manning <tamanning@zoho.com>2016-08-27 06:52:01 -0400
commitddfc5209d3a8a4b10f66b0ae0497a269ff2bdde1 (patch)
tree80936d2335aca91c1a3b828c234ae736c811d22b /Zotlabs/Module/Ratings.php
parent420aa4bc44a2fdf707b3964582258809f978ea2d (diff)
parentaea2fa1629692cc29f1070a66fbde9fb9ae837a6 (diff)
downloadvolse-hubzilla-ddfc5209d3a8a4b10f66b0ae0497a269ff2bdde1.tar.gz
volse-hubzilla-ddfc5209d3a8a4b10f66b0ae0497a269ff2bdde1.tar.bz2
volse-hubzilla-ddfc5209d3a8a4b10f66b0ae0497a269ff2bdde1.zip
Merge remote-tracking branch 'upstream/dev' into website-export. Added attach_move() to include/attach.php.
Diffstat (limited to 'Zotlabs/Module/Ratings.php')
-rw-r--r--Zotlabs/Module/Ratings.php14
1 files changed, 4 insertions, 10 deletions
diff --git a/Zotlabs/Module/Ratings.php b/Zotlabs/Module/Ratings.php
index 969fb5015..055b16ca3 100644
--- a/Zotlabs/Module/Ratings.php
+++ b/Zotlabs/Module/Ratings.php
@@ -21,12 +21,9 @@ class Ratings extends \Zotlabs\Web\Controller {
if($x)
$url = $x['url'];
- $poco_rating = get_config('system','poco_rating_enable');
- // if unset default to enabled
- if($poco_rating === false)
- $poco_rating = true;
+ $rating_enabled = get_config('system','rating_enabled');
- if(! $poco_rating)
+ if(! $rating_enabled)
return;
if(argc() > 1)
@@ -87,12 +84,9 @@ class Ratings extends \Zotlabs\Web\Controller {
return;
}
- $poco_rating = get_config('system','poco_rating_enable');
- // if unset default to enabled
- if($poco_rating === false)
- $poco_rating = true;
+ $rating_enabled = get_config('system','rating_enabled');
- if(! $poco_rating)
+ if(! $rating_enabled)
return;
$site_target = ((array_key_exists('target',\App::$data) && array_key_exists('site_url',\App::$data['target'])) ?