aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Affinity.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-12-28 14:06:30 -0800
committerMario <mario@mariovavti.com>2018-01-03 12:12:48 +0100
commit4ab4224277f52a24c22a5133ee529f2dc3232ab0 (patch)
tree69615990c153bfc98ff36da6655b66a7eec31504 /Zotlabs/Widget/Affinity.php
parentb5b2e34da5420714dde8ec2a88fe3f3be0499bc3 (diff)
downloadvolse-hubzilla-4ab4224277f52a24c22a5133ee529f2dc3232ab0.tar.gz
volse-hubzilla-4ab4224277f52a24c22a5133ee529f2dc3232ab0.tar.bz2
volse-hubzilla-4ab4224277f52a24c22a5133ee529f2dc3232ab0.zip
Make affinity widget settings work. It's entirely possible they never did work correctly. I'm not comfortable over-riding the network_page_default config in this way but this is the way I've always set the affinity and it has worked just fine for me for several years and there haven't been any other requests to extend the network page default options.
Diffstat (limited to 'Zotlabs/Widget/Affinity.php')
-rw-r--r--Zotlabs/Widget/Affinity.php12
1 files changed, 3 insertions, 9 deletions
diff --git a/Zotlabs/Widget/Affinity.php b/Zotlabs/Widget/Affinity.php
index 439ba1f33..a3e5b5c07 100644
--- a/Zotlabs/Widget/Affinity.php
+++ b/Zotlabs/Widget/Affinity.php
@@ -9,15 +9,9 @@ class Affinity {
if(! local_channel())
return '';
- // Get default cmin value from pconfig, but allow GET parameter to override
- $cmin = intval(get_pconfig(local_channel(),'affinity','cmin'));
- $cmin = (($cmin) ? $cmin : 0);
- $cmin = ((x($_REQUEST,'cmin')) ? intval($_REQUEST['cmin']) : $cmin);
-
- // Get default cmax value from pconfig, but allow GET parameter to override
- $cmax = intval(get_pconfig(local_channel(),'affinity','cmax'));
- $cmax = (($cmax) ? $cmax : 99);
- $cmax = ((x($_REQUEST,'cmax')) ? intval($_REQUEST['cmax']) : $cmax);
+
+ $cmin = ((x($_REQUEST,'cmin')) ? intval($_REQUEST['cmin']) : 0);
+ $cmax = ((x($_REQUEST,'cmax')) ? intval($_REQUEST['cmax']) : 99);
if(feature_enabled(local_channel(),'affinity')) {