mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
use request var for post enable settings so can be scripted
This commit is contained in:
parent
14230c1c47
commit
92358453fa
8 changed files with 8 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue