affinitiy slider settings were being updated on any submit of of settings/featured, plus minor non-code changes
This commit is contained in:
parent
75f058e15e
commit
b2e5b6c977
@ -10,14 +10,16 @@ class Featured {
|
|||||||
|
|
||||||
call_hooks('feature_settings_post', $_POST);
|
call_hooks('feature_settings_post', $_POST);
|
||||||
|
|
||||||
if(intval($_POST['affinity_cmax'])) {
|
if($_POST['affinity_slider-submit']) {
|
||||||
set_pconfig(local_channel(),'affinity','cmax',intval($_POST['affinity_cmax']));
|
if(intval($_POST['affinity_cmax'])) {
|
||||||
}
|
set_pconfig(local_channel(),'affinity','cmax',intval($_POST['affinity_cmax']));
|
||||||
if(intval($_POST['affinity_cmin'])) {
|
}
|
||||||
set_pconfig(local_channel(),'affinity','cmin',intval($_POST['affinity_cmin']));
|
if(intval($_POST['affinity_cmin'])) {
|
||||||
}
|
set_pconfig(local_channel(),'affinity','cmin',intval($_POST['affinity_cmin']));
|
||||||
if(intval($_POST['affinity_cmax']) || intval($_POST['affinity_cmin'])) {
|
}
|
||||||
info( t('Affinity Slider settings updated.') . EOL);
|
if(intval($_POST['affinity_cmax']) || intval($_POST['affinity_cmin'])) {
|
||||||
|
info( t('Affinity Slider settings updated.') . EOL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
build_sync_packet();
|
build_sync_packet();
|
||||||
|
@ -176,7 +176,7 @@ class Auth {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->Debug('auth check request returned .' . print_r($j, true));
|
$this->Debug('auth check request returned ' . print_r($j, true));
|
||||||
|
|
||||||
if(! $j['success'])
|
if(! $j['success'])
|
||||||
return false;
|
return false;
|
||||||
|
@ -60,7 +60,7 @@ function zid($s,$address = '') {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @FIXME checking against our own channel url is no longer reliable. We may have a lot
|
* @FIXME checking against our own channel url is no longer reliable. We may have a lot
|
||||||
* of urls attached to out channel. Should probably match against our site, since we
|
* of urls attached to our channel. Should probably match against our site, since we
|
||||||
* will not need to remote authenticate on our own site anyway.
|
* will not need to remote authenticate on our own site anyway.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user