use request var for post enable settings so can be scripted

This commit is contained in:
Friendika 2011-11-07 14:25:11 -08:00
parent 14230c1c47
commit 92358453fa
8 changed files with 8 additions and 8 deletions

View file

@ -132,9 +132,9 @@ function wppost_post_local(&$a,&$b) {
$wp_post = intval(get_pconfig(local_user(),'wppost','post'));
$wp_enable = (($wp_post && x($_POST,'wppost_enable')) ? intval($_POST['wppost_enable']) : 0);
$wp_enable = (($wp_post && x($_REQUEST,'wppost_enable')) ? intval($_REQUEST['wppost_enable']) : 0);
if($_POST['api_source'] && intval(get_pconfig(local_user(),'wppost','post_by_default')))
if($_REQUEST['api_source'] && intval(get_pconfig(local_user(),'wppost','post_by_default')))
$wp_enable = 1;
if(! $wp_enable)