diff options
author | zotlabs <mike@macgirvin.com> | 2017-12-30 22:48:06 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-12-30 22:48:06 -0800 |
commit | 3fadedcc54e9f937dbc461da7e99a851c044b6bf (patch) | |
tree | f74b257bffbcd0b69a3271ea433bf09db9123471 /Zotlabs/Widget | |
parent | e095cb8113c1ba6aec16a3bb500a447480218c19 (diff) | |
download | volse-hubzilla-3fadedcc54e9f937dbc461da7e99a851c044b6bf.tar.gz volse-hubzilla-3fadedcc54e9f937dbc461da7e99a851c044b6bf.tar.bz2 volse-hubzilla-3fadedcc54e9f937dbc461da7e99a851c044b6bf.zip |
test of new affinity preset code (post 3.0)
Diffstat (limited to 'Zotlabs/Widget')
-rw-r--r-- | Zotlabs/Widget/Affinity.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Zotlabs/Widget/Affinity.php b/Zotlabs/Widget/Affinity.php index a3e5b5c07..4fb2874ae 100644 --- a/Zotlabs/Widget/Affinity.php +++ b/Zotlabs/Widget/Affinity.php @@ -9,9 +9,11 @@ class Affinity { if(! local_channel()) return ''; + $default_cmin = ((feature_enabled(local_channel(),'affinity')) ? get_pconfig(local_channel(),'affinity','cmin',0) : 0); + $default_cmax = ((feature_enabled(local_channel(),'affinity')) ? get_pconfig(local_channel(),'affinity','cmax',99) : 99); - $cmin = ((x($_REQUEST,'cmin')) ? intval($_REQUEST['cmin']) : 0); - $cmax = ((x($_REQUEST,'cmax')) ? intval($_REQUEST['cmax']) : 99); + $cmin = ((x($_REQUEST,'cmin')) ? intval($_REQUEST['cmin']) : $default_cmin); + $cmax = ((x($_REQUEST,'cmax')) ? intval($_REQUEST['cmax']) : $default_cmax); if(feature_enabled(local_channel(),'affinity')) { |